PureBytes Links
Trading Reference Links
|
i'm tryng to let close intraday position some minutes before market
close, and opening the day after only when a new signal's come.
here the code :
x= HHV(TimeNum() ,500)-100;
Tempo3=IIf(TimeNum()>=x,0,1);
Buy=buycond;
Sell=sellcond;
Short=shortcond;
Cover=covercond;
// CLOSE AT END OF MARKET TIME
Cover=TimeNum() > x;
Sell=TimeNum() > x; //is working but after backtest i got double arrows
Now the problem is when the day openi is taking a new trade thinking
that the signal of the last day is still good and is buyng at the
minimum of the candles or selling from the top .. How i can say to
enter only when a new signal is done ... ??
|