Specification
Hi there! Hope you're doing good dear programmer.
I would like you to turn the signals of an indicator .ex4 to an expert advisor. If you're interested in the job after you read it, I will send you the indicator via Email, Telegram or Whatsapp.
The indicator shows Green and Red arrows on a chart, indicating the moments to buy and sell. The signals are good.
I would like you to make an expert advisor based on it:
Indicator settings: 5 - 200 - 3
Volumes: Multiples of 0.01
Volumes to enter and close positions, adjustable. Volumes below are for examples.
Initial Stop-Loss for All positions: 40 standard pips, and make it adjustable.
M15 Chart:
Enter Long: when indicator shows Green Arrow on M15 Chart - Volume: For Every 400 Dollars of free margin 0.01 Volume for position opening. For example: 3847 Dollars free margin available, 0.09 open Long position.
If Second Green Arrow shows without Red Arrow After First Green Arrow (2 Green Arrow after each other): Enter Long with Volume: 0.01 For Every 800 Dollars free margin.
If Third Green Arrow shows without and Red Arrow After First and Second Green Arrows (3 Green Arrows after each other and no Red Arrow): Enter Long with Volume: 0.01 For Every 1600 Dollars free margin.
If 1, 2 or 3 previous positions were open because of M5 Arrows enter Long with Volume: 1/2, 1/4 or 1/8 of the Volume calculated because of M15 Arrow(s).
M5 Chart:
Enter Long: when indicator shows Green Arrow on M5 Chart - Volume: For Every 400 Dollars of free margin 0.01 Volume for position opening. For example: 3145 Dollars free margin available, 0.07 open Long position.
If Second Green Arrow shows without Red Arrow After First Green Arrow (2 Green Arrow after each other): Enter Long with Volume: 0.01 For Every 800 Dollars free margin.
If Third Green Arrow shows without and Red Arrow After First and Second Green Arrows (3 Green Arrows after each other and no Red Arrow): Enter Long with Volume: 0.01 For Every 1600 Dollars free margin.
If 1, 2 or 3 previous positions were open because of M15 Arrows enter Long with Volume: 1/2, 1/4 or 1/8 of the Volume calculated because of M5 Arrow(s).
Close Long:
If 1 position open because of M5 or M15 Green Arrow and a Red Arrow shows on M5 or M15: Close the Long position. And enter 1 Short position with default Stop-Loss (40 standard pips) with Volume: 0.01 for Every 400$ free margin.
If 2, 3 or more positions were open because of M5 or M15 Green Arrows and a Red Arrow shows on M5 or M15: Close the biggest position. And Set the Trailing-Stop of the other position(s) to nearest value possible to 1/4 of pips from the Highest High distance to the price where first Red Arrow started showing. And at the same time, enter 1 Short position with default Stop-Loss (40 standard pips) with Volume: 0.01 for Every 400$ free margin.
Opening Short position(s) follows the same rules as Opening Long positions.
Closing Short position(s) follows the same rules as Closing Long positions.
Hope it's all clear and it's an easy task for you to finish soon.
And thanks in advance!