Coding help needed

kim Larsen

Trader
Feb 7, 2018
5
0
12
50
I have a consept that I would need some help with.
I have been testing a few dashboard EA that use currency strength as basis for opening positions.

What I find is that it is working good when trend is strong, but in ranging marked it ends up opening sell positions and the bottom and buy at the top.
So then I tested some reversal software and that gave good results when the marked was ranging.
So, how to combine those two scenarios?

What I found is that it was quite consistent in terms of winning and losing baskets.
often it will win 4-5 baskets and then lose 4-5 depending on market ranging/trending.

What I wonder if it would be possible to modify the attached EA with a new parameter.
Reverse trading:True,False or Auto.
Reverse trading false:everything working as is, buy when strong sell when weak.
Reverse trading True:It will open sell when the EA gives buy signal and buy when EA gives sell.
Reverse trading Auto: in this case it will start trading with Reverse trading false, if the basket close in profit, it will keep trading next basked with reverse trading false. If the basket is closed in loss, then the next basked will be using Reverse Trading True... keep trading to next basket closed in loss, then switch. The idea is to use reverse when ranging and default when trending.

Possible?
 

Attachments

  • Dashboard - Power MeterV3.mq4
    85.1 KB · Views: 21

Enivid

Administrator
Staff member
Nov 30, 2008
19,234
1,507
144
Odesa
www.earnforex.com
Are you sure that reversing this EA's signals would produce winning trades in place of the losing ones? Because not all EAs are good for reversing. If the EA mostly closes the trades by SL and TP, reversing its signals won't help much.
 

kim Larsen

Trader
Feb 7, 2018
5
0
12
50
Hii Enivid,
No, I am not 100% sure.
I tried it with a copy tool that could reverse, by running it on two different terminals.
The problem is that to many orders where missed so the result was not consistent, but it looked promising.