Currently Browsing : SID

CSI_Optimize 0

Posted on 2, February 2016

in Category SID

Description for CSI_Optimize SID 502 Test Notes for this Trading Account: A Simple CCI based system Rules:Buy using CCI as an oscillatorSell using CCI as divergence with price Rules for this Trading Account: Notes for this Trading System: Rules for this Trading System: Bar event logic: #Basic CCI system, buy using CCI as an oscillator #Sell using CCI as divergence with price if (not Position) { #We have no position, buy if the CCI today is less than -100 BuyOpen if Today(CCI($period))<-100; } else { #We have a position, look for a divergence and exit if (Today(Highest(High,$back))==HighPrice) { if (Today(Lowest(CCI($period),$back))==Today(CCI($period)))

Read More

RExample 0

Posted on 20, January 2016

in Category SID

Description for RExample SID 985 A simple R example on how to interact between the R and Seer enviroment. Notes for this Trading Account: Rules for this Trading Account: Notes for this Trading System: Rules for this Trading System: Begin event logic: $magicArray = (); # define magicArray to be an array Bar event logic: RVar(Close); R ' magicNumber <- mean(Close); # mean() is our “magic” function '; my $m = RVar('magicNumber'); Output($m); #output the indicator value we calculated push @$magicArray, $m; # add the value to an array #output the array as proof that we are adding it correctly

Read More

Dynamic Trailing Stop Loss 0

Posted on 13, May 2014

in Category SID

Description for TrailingStop SID 954 An example on how to implement a dynamic trailing stop. This example is using FXCM and Forex with EURUSD with a 10 pip stop. If the price moves up, the stop moves up with it. Notes for this Trading Account: Rules for this Trading Account: Notes for this Trading System: Rules for this Trading System: Begin event logic: #Enter an order PlaceBuyMarket('Enter',1000,OnFill => 1); Bar event logic: #Dynamic Trailing stop logic. #Loop round all orders, finding stops, extracting data assocated with them and changing them as needed. #Rules, we always want to be within 10

Read More

KST Chart 0

Posted on 14, March 2014

in Category SID

Description for KST SID 234 Chart using Martin Pring’s KST Indicator The logic for this technical analysis chart: my $ROCPeriod1 = ChartInputSlider('ROC1', 9, 3, 24); my $ROCPeriod2 = ChartInputSlider('ROC2', 12, 6, 27); my $ROCPeriod3 = ChartInputSlider('ROC3', 18, 9, 30); my $ROCPeriod4 = ChartInputSlider('ROC4', 24, 12, 36); my $AvgLength1 = ChartInputSlider('AVG1', 6, 3, 21); my $AvgLength2 = ChartInputSlider('AVG2', 6, 3, 21); my $AvgLength3 = ChartInputSlider('AVG3', 6, 3, 21); my $AvgLength4 = ChartInputSlider('AVG4', 9, 3, 21); my $SignalLength = ChartInputSlider('Signal', 9, 3, 21); my ($KST, $Signal) = KST($ROCPeriod1, $ROCPeriod2, $ROCPeriod3, $ROCPeriod4, $AvgLength1, $AvgLength2, $AvgLength3, $AvgLength4, $SignalLength); PlotSetScale($KST, $Signal); PlotColumn($KST, Red); PlotColumn($Signal, Green)

TAGS:
Read More

KST Indicator 0

Posted on 14, March 2014

in Category SID

Description for KST SID 412 Martin Pring’s KST Indicator The logic for this technical analysis indicator: # # Martin Pring's KST Indicator # my ($ROCPeriod1, $ROCPeriod2, $ROCPeriod3, $ROCPeriod4, $AvgLength1, $AvgLength2, $AvgLength3, $AvgLength4, $SignalLength) = @_; # Validate Periods ValidatePeriods($ROCPeriod1, $ROCPeriod2, $ROCPeriod3, $ROCPeriod4); ValidatePeriods($AvgLength1, $AvgLength2, $AvgLength3, $AvgLength4); ValidatePeriods($SignalLength); # Get the Rate of Change for all periods my $ROC1 = ROC(Close, $ROCPeriod1); my $ROC2 = ROC(Close, $ROCPeriod2); my $ROC3 = ROC(Close, $ROCPeriod3); my $ROC4 = ROC(Close, $ROCPeriod4); # Average out the ROCs my $ROCAvg1 = SMA($ROC1, $AvgLength1); my $ROCAvg2 = SMA($ROC2, $AvgLength2); my $ROCAvg3 = SMA($ROC3, $AvgLength3); my $ROCAvg4 = SMA($ROC4,

Read More

The SMMA is a smoothed moving average, almost a blend of the simple mo 0

Posted on 12, March 2014

in Category SID

Description for SMMA SID 993 The SMMA is a smoothed moving average, almost a blend of the simple moving average with the exponential moving average The logic for this technical analysis indicator: #The SMMA is a smoothed moving average, almost a blend of the simple moving average with the exponential moving average. #Similar to all the other moving averages, the SMMA is used for identifying trends, only that the SMMA is developed to filter the majority of market noise in order to generate results with refined accuracy. my ($col,$period) = @_; my $sum1 = Sum($col,$period); my $moving = NewColumn(“SMMA($col,$period)”); SetValue($moving,0,Value($sum1/$period,0));

Read More

Anti-Martingale money management for forex 0

Posted on 12, March 2014

in Category SID

Description for AntiMartingale SID 181 Anti-Martingale money management for forex A basic Anti-Martingale money managment for forex: Description from: http://en.wikipedia.org/wiki/Martingale_(betting_system) This is also known as the reverse martingale. In a classic martingale betting style, gamblers increase bets after each loss in hopes that an eventual win will recover all previous losses. The anti-martingale approach instead increases bets after wins, while reducing them after a loss. The perception is that the gambler will benefit from a winning streak or a “hot hand”, while reducing losses while “cold” or otherwise having a losing streak. As the single bets are independent from each

Read More

Martingale money management for forex 0

Posted on 12, March 2014

in Category SID

Description for Martingale SID 124 Martingale money management for forex A basic Martingale money managment for forex: Description from: http://en.wikipedia.org/wiki/Martingale_(betting_system) A martingale is any of a class of betting strategies that originated from and were popular in 18th century The simplest of these strategies was designed for a game in which the gambler wins his stake if a coin comes up heads and loses it if the coin comes up tails. The strategy had the gambler double his bet after every loss, so that the first win would recover all previous losses plus win a profit equal to the original

Read More

Example pairs trading code 0

Posted on 12, March 2014

in Category SID

Description for pairsMovArb_res SID 772 Some sample pairs trading code. Do NOT TRADE, for example only. Notes for this Trading Account: Rules for this Trading Account: Notes for this Trading System: Rules for this Trading System: Begin event logic: $pairPositions = {}; Bar event logic: my $s0 = Symbol(); my $s0_mov = log(Ref(Close, 0) / Ref(Open, -$p)); my $trade = 0; my @symbols = PortfolioSymbolsX(); foreach my $s1 (@symbols) { if( (($s1->Symbol eq 'USDJPY') && (($s0 eq 'AUDUSD') || ($s0 eq 'NZDUSD'))) || (($s0 eq 'USDCAD') && ($s1->Symbol eq 'AUDUSD')) || (($s0 eq 'AUDUSD') && ($s1->Symbol eq 'NZDUSD')) ) {

Read More