Forum

MQL4 code required - calculate $value per point

I want to set my TP based on a target % of my account balance . Example: Balance=$100 Lotsize=0.01 EURUSD Target % profit = 0.5% of balance Once I have the $value per point I can then calculate my TP

Confirm market order

I have an EA but want to make the final decision as to whether to buy or not. So having detected a buy/sell condition the EA should request entry confirmation with something like: "Buy condition confirmed - submit order?" and then allow me to give a y/n response. Does anyone have a code sample or