I have a big problem and I hope to resolve it.
Like show in the picture below when the target is reach in the same bar the code below is not taken into account
Code: Select all
If MP = 1
Then Begin
value10 = 99999;
End;
thanks in advance
Code: Select all
If MP = 1
Then Begin
value10 = 99999;
End;
Code: Select all
Buy ("entry1") 1 shares next bar at var1 limit;
Code: Select all
sell ("longexit1") from entry ("entry1") next bar at targetvar1 limit;
Thanks so much wilkinsw,Name your entry.
Then code exits that reference that name and that aren't sitting in a marketposition condition. Change in marketposition is only detected when the first tick of the next bar is received (using normal, non IOG, settings).
E.g.
Then, perhaps at very end......Code: Select all
Buy ("entry1") 1 shares next bar at var1 limit;
Because you've named and then referenced that name.... as soon as you're filled, MC will work you exit order IF it related to the entry name.Code: Select all
sell ("longexit1") from entry ("entry1") next bar at targetvar1 limit;
Code: Select all
If MP = 1 and <code to recall order>
Then Begin
value10 = 99999;
End;