Forum

MT4 vs MT5 ARROW disappearance

Greetings, I'm writing an indicator which draws colored bullets(arrows). int OnInit () { ... SetIndexBuffer ( 4 ,BulletBuffer, INDICATOR_DATA ); PlotIndexSetInteger ( 4 , PLOT_SHOW_DATA , false ); PlotIndexSetDouble ( 3 , PLOT_EMPTY_VALUE , 0.0 ); PlotIndexSetInteger ( 3

How the margin requirements for a symbol are calculated

While checking the Documentation of the Symbol Properties I noticed the formulas for margin and profit calculation. SYMBOL_CALC_MODE_FOREX Margin: Lots*Contract_Size/Leverage Profit: (close_price-open_price)*Contract_Size*Lots SYMBOL_CALC_MODE_FUTURES Margin: Lots *InitialMargin*Percentage/ 100

Optimization Results Export Deal details

Hello, How can I export deal details of an Optimized Test ? The optimized test exports in xml file the results only. On Strategy Tester there is the option to run the Single Test and then export the details. Supposedly during the optimization for each combination the deals are computed, but in the

EA Calculates lots per Money Risk Percentage

Greetings, I'm writing an EA which will trade according to user's risk percentage. Let's say it opens an Long position during daylight and Short position during night, a simple/stupid EA. EA's input value is the risk percentage, let's say 15 for 15% of available money. Whenever opens a position it