Hello every body
I'm new in this forum and have several problem in using these sources :P (the biggest is writing in English #-o )
I'm trying to ask a question and excuse me if I'm not good in English
I'm trying to test a system .The BUY signals are all correct but SELL and BUY TO COVER orders are not in correct position.
the condition for SELL ORDER is :(hi and lo are support and resistance)
[color=darkblue:06273c81ba](cross(hi,l) and (highestsince(1,ref(cross(h,hi),-1),h)-hi)>=0.0040) or
(cross(lo,l) and ( ValueWhen(1,cross(lo,l),lo) <> (ValueWhen(2,cross(lo,l),lo)))) or
(hour()=23) or
(dayofweek()=5 and hour()=21 and minute()=30)[/color]
order type : stop
[color=darkblue:06273c81ba]hi:= FmlVar("1_SCB System","H1") ;
lo:= FmlVar("1_SCB System","L1") ;
if(cross(lo,l) and ( ValueWhen(1,cross(lo,l),lo) <> (ValueWhen(2,cross(lo,l),lo))),lo,0) or
if(hour()=23 or (dayofweek()=5 and hour()=21 and minute()=30),[color=red:06273c81ba]c[/color],0)
or
if(cross(hi,l) and (highestsince(1,ref(cross(h,hi),-1),h)-hi)>=0.0040,[color=red:06273c81ba]hi[/color],0)[/color]
The problem is that the sell signals does not execute at specified (Red) prices :?
when I use Simulation.currentPositionValue ,the order does not execute.
Thanks for your helps