BRISBANE
Posts: 3 since Jul 2011
Thanks Given: 0
Thanks Received: 0
|
Hi All ,
The below code buys sells at market .Can it be changed to a buy stop (one cent higher) sell stop (one cent lower) and does anyone know how one would go about entering it in ???
Steve
[IntrabarOrderGeneration = True]
INPUTS: RSILen(21),PcntRLen(12),RSIBuy(42),PctRBuy(20),RSISell(59),PcntRSell(89);
//Poss 14
Var:RSI1(0),PcntR1(0);
RSI1 = RSI(C,RSILen);
PcntR1 = PercentR(PcntRLen);
If RSI1 < RSIBuy and PcntR1 < PctRBuy
then
Buy this bar;
If RSI1 > RSISell and PcntR1 > PcntRSell
then
Sell this Bar;
//Print(DAte,Time,RSI1 ,RSI1 > RSISell ,PcntR1 ,PcntR1 > PcntRSell) ;
|