Should SetStopLoss by Currency always be a positive value, or can it be set to a negative or positive value?
Say my current unrealized gain is $30. I want to set a stop loss at -$20, or $50 from my current realized gain. Would the proper statement then be:
SetStopLoss(CalculationMode.Currency, -20);
Or, say I want to set an initial stop loss at -$20 from entry price. Then, after a gain, I want to reset to +$20 from entry price. Would this be:
SetStopLoss(CalculationMode.Currency, -20);
SetStopLoss(CalculationMode.Currency, 20);
The reference code uses only a positive value, so I'm unsure how to use currency to specify the -$20/$20 case.
How to do? Thanks,
Comment