Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2016.07.01 09:23
MA with a price

MA with a price - expert for MetaTrader 4

| English Español Português 日本語 Deutsch Русский

Views:
4538
Rating:
votes: 6

The system is not new, of course, and that is not the point. I could not manage to implement something properly in order to test it properly. Also, I really needed this feature in other ATS as well. (in the current form, it can help only those who have EXTRA money in the truest sense of the word).

To be more specific, I could not implement the position reversal. The current state of the program implements something like:

FOR EXAMPLE:

SHORT POSITION 1st candle: close price is above MA (buy signal) 2nd candle: closure of the short position at the open price of the new candle (this is when the long position must be opened) 3rd candle: (this is where it goes wrong) the long position is opened at the open price of this candle (and not the 2nd candle).

This process is illustrated in the image (description of the situation with "BUY", the same with the "SELL", of course).

I would be glad if the more advanced minds than mine contributed to solving this task. If possible, please fix the attached code. Of course, I would be grateful for simple tips as well. (Although I am not sure if I will be able to convert simple tips into code - too little experience). :)

MA_price

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/8615

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Modify All TP SL Modify All TP SL

The script modifies all orders (market and pending) on the symbol with specified Take Profit and Stop Loss.

iFractals 4all TF iFractals 4all TF

Buy or sell just by looking at the "arrow" as a signal. Very easy and simple.