I'm trying to translate the following Tradestation system:
Inputs: Len1(6), Len2(7);
If Close = LowestFC(Close, Len1)
Then Buy This Bar at Close;
If BarsSinceEntry = Len2
Then Exitlong This Bar at Close;
Most of it is easy - but I'm not sure if I've got the right function
in place. The system is described as:
"this system buys the 6 day low and sells at the close of the 7th day. "
Is the following the same thing?
Buy = C = Ref(LLV(C,6),-1);
BuyPrice = Close;
Sell = 0;
SellPrice = Close;
ApplyStop(stopTypeNBar,stopModeBars,Optimize("BarStop",6,10,40,1),ExitAtStop=1,Volatile=False,ReEntryDelay=0);
Thanks in advance!