676
edits
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
GenerateProfitTarget(5); | GenerateProfitTarget(5); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Sell Limit order will be generated at price = EntryPrice + ( | Sell Limit order will be generated at price = EntryPrice + (Amount/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. | 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. | ||
Line 48: | Line 48: | ||
GenerateStopLoss(5) in PerContract mode will generate 2 Stop orders (one exit per each entry). | GenerateStopLoss(5) in PerContract mode will generate 2 Stop orders (one exit per each entry). | ||
StopLoss order price for the first entry = EntyPrice + | StopLoss order price for the first entry = EntyPrice + 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 + | StopLoss order price for the second entry = EntyPrice + 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: | Final sending orders: |