Changes

Jump to navigation Jump to search

4.6.2 Special Orders

3 bytes removed, 16:40, 20 July 2017
no edit summary
GenerateProfitTarget(5);
</syntaxhighlight>
Sell Limit order will be generated at price = EntryPrice + (AmmountAmount/Contracts)/ BigPointValue = 12,25 + 5/100/10 = 12,255;
Because the price does not correspond to the minimum price increment, it will be rounded to BETTER price, according to the step MinMove* PriceScale = 25*0,01 = 0,25 до 12,50.
GenerateStopLoss(5) in PerContract mode will generate 2 Stop orders (one exit per each entry).
StopLoss order price for the first entry = EntyPrice + Ammount Amount / BigPointValue = 1,00 + 5/100 = 1,00 + 0,05 = 1,05; considering the price step (0,02) is rounded to the WORSE = 1,06.StopLoss order price for the second entry = EntyPrice + Ammount Amount / BigPointValue = 0,98 + 5/100 = 0,98 + 0,05 = 1,03; considering the price step (0,02) is rounded to the WORSE = 1,04.
Final sending orders:

Navigation menu