Midas VWAP - EA

MQL5 Experts

Spécifications


********** The $30 price is for illustrative purposes only. If you are interested in the project I will create an order of $400 specifically for your user***********

Requirement:

->There must be a function to calculate the price VWAP from a certain point.

There is already an indicator that does this. He calls it VWAP Midas.

 

* When the indicator is plotted on a top it calculates the VWAP taking into account the High:



void CalculateVWAP()

  {

   double sumPrice=0,sumVol=0;

   for(int i=startVWAP; i<iRatesTotal; i++)

     {

      sumPrice    += Price(iHigh ,i)*iVolume[i];

      sumVol      += iVolume[i];

      vwapBuffer[i]= sumPrice/sumVol;

     }

  }

* When the indicator is plotted on a bottom it calculates the VWAP taking into account the Low:


void CalculateVWAP()

  {

   double sumPrice=0,sumVol=0;

   for(int i=startVWAP; i<iRatesTotal; i++)

     {

      sumPrice    += Price(iLow ,i)*iVolume[i];

      sumVol      += iVolume[i];

      vwapBuffer[i]= sumPrice/sumVol;

     }

  }

->There must be a function to calculate the standard deviation of the VWAP(σ).

->There must be a function to calculate the lower and upper band of the VWAP.

 

BottomBandBuffer = VWAP -K1*σ

 

Where K1 is a “double” input and σ is the standard deviation of the VWAP.

 

BufferBandSuperior= VWAP + K2*σ

 

Where K2 is a “double” input and σ is the standard deviation of the VWAP.

 

->There must be a function to validate the VWAP.

(Long exemple)

* When a candle closes below the VWAP it is no longer a valid VWAP and the robot can no longer use that VWAP.


(short exemple)

* When a candle closes above the VWAP it is no longer a valid VWAP and the robot can no longer use that VWAP.

* In the red arrow the VWAP was valid. In the blue arrow after the closing of the candle above the VWAP it is no longer valid.



* VWAP is only valid for N First Rings. If the price touches the VWAP N+1 times it is no longer valid. Where N is an input with default = 3.


In the example above, the VWAP is still valid on the blue arrow, but on the orange arrow it is already invalid, as it is the fourth touch.

In this other example the first vwap is no longer valid on the yellow line. The second vwap is no longer valid on the green line and the third vwap is no longer valid on the purple line (because of the 3-touch rule). However, if the 3-touch rule did not exist, the third vwap would only cease to be valid on the brown line.


->EA Entry pattern:

 

-> The robot will enter the operation based on the VWAP which was plotted by the user.

The robot will only enter the trade if:

 

(short example)

Rules:

* There must be 1 valid VWAP

* Price must touch vwap and close below it

* The price must make a high higher than the highest high between the last N candlesticks (Input: default N=3) And close below. (See example in the graph in blue). The highest high among the last 3 candlesticks was the middle candlestick.

* Entry is made on the next candlestick (0.5 pips before touching vwap)


In this example the entry was made on the red line (0.5 pips before touching vwap).


In this example: The maximum of the last 3 candles is the rightmost candle. The candle touched the VWAP and closed below it. The candlestick made a high higher than the high of the candlestick further to the right and closed below that high. The sell occurs (0.5 pips before touching the vwap) on the red bar.

*Note: The VWAP test must be on the next candlestick.

 

->Take Profit

(short example)

Take will be

BottomBandBuffer = VWAP -K1*σ. K1 defaults to 1

 

->Stop Loss

(short example)

The stop will be

BufferBandSuperior= VWAP + K2*σ. K2 default will be 0.5

 

By default the stop will be 0.5 standard deviation from the VWAP and the take will be 1 standard deviation from the VWAP. But the user can change this input if he wants.

 

Note: Stop and target will be fixed and will be in the position of the respective bands when the robot enters the trade. Stop and target will not be dynamic following the bands!

 

-> Early Stop Loss

(short example)

If the robot is in the middle of a trade and the price closes above the VWAP, it can close the trade (Leave an input(true,false) option to activate this functionality)


In this example the robot must close the operation on the yellow bar at the closing of the candle.

 

->There must be a time filter that the robot can open operations (Input)

 

-> Trading lot control:

*Fixed lot options

*Options to cross out % of the account. With default risk 1% per trade.

->Trade protection

(Purchase example)

*There must be an input (true, false) to allow trade protection (0.5 pips above the entry) if it has gone N% of target. The default of N = 70%

 

 *** must contain the executable and the source code! ***



Répondu

1
Développeur 1
Évaluation
(800)
Projets
1371
72%
Arbitrage
112
29% / 48%
En retard
341
25%
Chargé
2
Développeur 2
Évaluation
(34)
Projets
60
23%
Arbitrage
11
73% / 9%
En retard
3
5%
Gratuit
3
Développeur 3
Évaluation
(290)
Projets
432
64%
Arbitrage
5
40% / 0%
En retard
4
1%
Chargé
4
Développeur 4
Évaluation
(3)
Projets
4
0%
Arbitrage
2
50% / 50%
En retard
0
Gratuit
Commandes similaires
1) the EA can compound the lot size from 0.01 to 0.02 so on 2) the EA must able to trade different kind of pair 3) the EA will have stoploss or take profit 4) long term profit 5) for equiry will be 100 for every 0.01 lot Developer will have that kind of EA may apply and introduce any investor account! this EA must have mql4 file
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Helvetica Neue'} Hello Looking for someone to help me improve my current strategy on my own algorithm and to also add hedging mode
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
Long Position 1. Trend Line: When a Lower High (LH) is formed, draw a trend line from the previous Higher High (HH) to the new LH. 2. Trend Line Adjustment: If a new Lower High (LH) is formed without breaking the trend line, redraw the trend line to the new LH. Draw a trend line between the Higher High (HH) and the Higher Low (HL). If a new Higher High (HH) is formed, remove the previous trend line and draw a new one
Please watch the video on this youtube channel and download the Indicator from there. https://www.youtube.com/watch?v=ldTomLu8DxE&amp ;t=32s Rules are explained on the video and the download of the indicator is on the same video
I would like an EA that follows exactly this steps to trade de daily candle. Watch the video and then see if you can do the task. https://www.youtube.com/watch?v=g3oDYq4P9ZE Document is one this link https://cdn.discordapp.com/attachments/1135977927469703230/1135978751461695598/Daily_Bias-TTrades_edu.pdf?ex=669a9a27&amp ;is=669948a7&hm=96de195f7e695a381c1261b065f67b94fae319d02a0c88641b146f8b2978320c& Should have
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
Hi, I have an indicator from my friend, I want to copy it to my own MT5 can you do that for me. Here is the link
I'm looking for someone to help me create an arbitrage trading robot that can trade on any decentralized exchange. I had one created in python, but I would like it to work in MT5 with various regular rules that make it profitable
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD