I have a problem with the SetprofitTarget,is not activate when it reaches the price . In the Output window , the calculation: Close [0] + RangeIL is correct. The profit does not fire when the price is reached.
Code:
# region Positions
private void GoLong ()
EnterLong (10, "");
SetProfitTarget (LongBuy "CalculationMode.Price, Close [0] + rangeIL);
Print (Time [0] + "Value rangeIL" rangeIL +);// it's OK
# endregion
protected override void OnBarUpdate ()
if (variable1 Variable0 == 0)
{
GoLong ();
}
Ciao.
Roberto
Comment