PureBytes Links
Trading Reference Links
|
Hello, I hope someone can help me out with a problem concerning the
consecutive function. Playing around with adding contracts to an existing
position but I haven't been able to get this to work even entering a new
position. I opened the "ConsecCriteria" function for a hint. Do I need a
true-false statement to make this work, and what exactly is the -1 doing at
the end of the statement?
Input: Consec(3);
If MarketPosition = 1 Then Begin
IF MRO(Close > Close[1],Consec,1) = -1 and
MRO(volume(1) > volume(1)[0],Consec,1) = -1 and
MRO(openint > openint[1],Consec,1) = -1 Then Buy on Close;
End;
Or could I incorporate all 3 into 1 condition to do the same thing such as:
If MarketPosition = 1 Then Begin
IF MRO(Condition1,Consec,1) = -1 Then Buy on Close;
End;
Thanks for any help
Walter
|