I will write an advisor free of charge - page 104

 

Hi all, who is able to write a script (if possible) which would spread a grid of orders in a given price range in steps of 300 points (starting from the Buy) when one button is pressed. For example, if we specify a range of 1500,000 and 1530,000, in this range there will be a grid starting from the Buy 1500,000, then the Sell 1500,300 and so on up to 1530,000.

It should be considered that under the current price there will be a Buy Limit and a Sell Limit, and correspondingly above the price there will be a Buy Stop and a Sell Limit.

Ideally, the step between trades should be specified.

Terminal MT4

Thanks in advance!

 
Vladimir Karputov:

What is the meaning of this? That is, a position was opened based on an iStochastic signal OR an iMACD signal. What then is the criterion " If price has not gone in our direction": the number of points of loss?

If the order was opened with lot 0.05 at 1.00000 for example in buy, and the price did not reach TP from this order and went down, the Expert Advisor should open a BUY order with lot 0.08 at 0.00700, etc.

 
Vladimir Karputov:

This is also not clear. The usual way that Breakeven works is to calculate a netting price for one type of position and add a certain value to it (you can call it Take Profit and Breakeven). That is, if the Take Profit is 30 pips, then on the second knee these 30 pips will be added to the netting price - and this does not mean "make 60 pips".

Yes, that's probably how I have the ARGOAVERAGER 3.0
 
gayver1111:

If the order is opened with lot 0.05 at price 1.00000 in buy, and the price has not reached ТР from this rate and has gone down, the Expert Advisor should open BUY deal with lot 0.08 at price 0.00700, etc.

Unzip files into one folder. Place this folder in the Expert Advisors folder.

Start the Expert Advisor file "Percolator Multicurrency.mq5".

The Expert Advisor works on four symbols at once:"EURUSD", "GBRUSD", "USDJPY" and "AUDUSD". Any of them can be enabled/disabled.

 
gayver1111:
***

Have you tried running it? How are the tests?

 
Vladimir Karputov:

Have you tried running it? How are the tests?

The EA should open only one trade on a signal from MACD or stochastic and until this trade is closed on TR. The EA should ignore the rest of the signal to open trades.

Money management It doesn't need a certain lot

Files:
C_qz50q_MACD.png  121 kb
 
gayver1111:

The Expert Advisor should open only one trade on a signal from MACD or stochastic and until this trade is closed on TR. The rest of the signal to open trades should be ignored.

Money management It doesn't need a certain lot

MM - there is a choice of three options: minimum lot, fixed lot and risk percentage. This will be the case.
There will be two new settings:
1: take profit on the first position or don't take it at all
2: allow only one position (or Buy or Sell); even only one position (or Buy or Sell); allow many positions
 
Vladimir Karputov:
MM - there is a choice of three options: min lot, fixed lot and risk percentage. This is how it will be.
There will be two new Settings:
1: allow Take Profit on the first position or no Take Profit
2: allow only one position (or Buy or Sell); allow only one position at all (or Buy or Sell); allow many positions

2: allow only one position (or Buy or Sell); only one position at all (or Buy or Sell); allow many positions

I do not understand what it means.

You can also add a filter to the 2nd MA and remove the MACD or make it disabled

Files:
b.png  82 kb
 
gayver1111:

2: allow only one position (either Buy or Sell); allow only one position at all (either Buy or Sell); allow many positions

I do not understand what it means.

You can also filter the 2nd MA and remove the MACD or make it disabled

To clarify: three options can be implemented
-allow only one position (no more than one Sell or Buy);
- only one position at all (either Buy or Sell);
- allow many positions
 
Vladimir Karputov:
To clarify: three options can be implemented
-allow only one position (no more than one Buy and one Sell);
- only one position at all (either Buy or Sell);
- Allow many positions
- only one at all (either Buy or Sell);
Reason: