You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
1. Does anyone have the "Trend_Trigger_Modified_V3_a" for MT4? I've got one version but this does not give the same reading as the MT3 one.
2. I'm trying to code an expert. However, I am finding it a challenge as I do not have any prior programming experience. I am using MT3 to programme this. Can you please tell me how to code the following in MQL?
//To open Buy position.
if (condition1 and Condition2) then{
open 5 Lots
//where Lots=0.2, so 1pip=5* $2=$10. How do I code this??
}
//To close Buy Position
In my strategy theres 5 levels of profit taking, namely 15, 35, 55, 75, 95. I want to close one lot (that is, 0.2 of a Lot, mini lot to be precise) when price advances by 15, then I want to move Stop Loss to openprice+15. So that if price goes down afterwards i will not loose out. Then I want to close another 0.2 of a Lot when price advances to the 35 level, and consequently move the stop loss to the openprice+35 level, so on... How do I code the above in MQL? I have used ModifyOrder function, but I get no trades listed in the sytem tester. I hope you understood the above.
Thank you in advance. I wish you the best in trading.
Attiqul