Expert Advisors: An Expert Advisor, based on the "Puria method" Forex Strategy

 

An Expert Advisor, based on the "Puria method" Forex Strategy:

An Expert Advisor, based on the "Puria method" Forex Strategy.

Trading rules:
  • Sell when the blue MA crossed two red MAs from above to below and the signal is confirmed by MACD indicator (one bar is closed below the Zero Level).
  • Buy when the blue MA crossed two red MAs from below to above and the signal is confirmed by MACD indicator (one bar is closed above the Zero Level)

Author: AM2

Puria method forex strategy

 

It does not behave in full accordance with logic. For example, look at euro/usd 30 min did not open at this point fig 1.
On another currency it decided to sell again fig 2. :)
I checked all the settings. MACD also has a normal value for trading at these moments.
Also sometimes the EA makes a trade when switched on. When I closed it with my hands, despite the fact that it is running, it stopped trading, the next trade was missed, I did not wait any further, I restarted it.
Would you be interested in fixing this or understanding the reasons?

Files:
 
Hi all, I'm trying to master the methods of writing an Expert Advisor (although I'm not very strong in programming), for this Expert Advisor "Puria Method", please tell me!!!! what code should be used and where to write it in the EA that - would stoploss moved behind the price at a distance of 20-50 points, if you look at the history of testing this EA with data stoploss = 30, takeprofit = 80 and test on the pair EUR / USD and time interval H1, gives good results, but when the price did not reach takeprofit 20 points and went back, the deal closes with minus $300, and if - if stoploss followed the price, the price closed +400$,
Please tell me how to do it ????????????................... thank you very much in advance.
 
renovatios:
Hi all, I'm trying to master the methods of writing an Expert Advisor (although I'm not very strong in programming), for this Expert Advisor "Puria Method", please tell me!!!! what code should be used and where to write it in the EA that - would stoploss moved behind the price at a distance of 20-50 points, if you look at the history of testing this EA with data stoploss = 30, takeprofit = 80 and test on the pair EUR / USD and time interval H1, gives good results, but when the price did not reach takeprofit 20 points and went back, the deal closes with a minus of $ 300, and if - would stoploss followed the price, the price closed + $ 400,
Can you please tell me how to do it ????????????................... thank you very much in advance.


Use the template and class in the files.

Files:
puria1.mq5  7 kb
 
AM2:

Use the template and class in the files.

Please tell me, after installing an Expert Advisor on a chart, do I need to put indicators on the chart as well or is one Expert Advisor enough?
 
dpm:
Can you please tell me, after installing an Expert Advisor on a chart, do I need to put indicators on the chart as well or is one Expert Advisor enough?

An Expert Advisor is enough. This is a variant in MQL4:

http://w ww.opentraders.ru/downloads/37/

 
AM2:

Expert Advisor is enough. This is a variant in MQL4:

http://w ww.opentraders.ru/downloads/37/

It differs from the MT5 Expert Advisor, there is no self-setting lots, I understand there is an autolot, and the work also differs for some reason in the worst way, on MT5 very well passes, maybe it depends on the broker, MT5 tried on Alpari, and MT4 on DC Start.
 
so this looks like a set of indicators not an EA. does this ea place trades as in is it a robot?
 
deweert:
so this looks like a set of indicators not an EA. does this ea place trades as in is it a robot?
It's an Expert Advisor, an EA, a robot, and it places trades. Why do you think it won't ?
 

guess i worded that wrong. i just installed it this weekend so wasn't sure. Some EA's act like an indicator and they don't place trades. so just making sure. thanks for your time. 

Cheers,

Len 

 
Good Job !!