Experts: ZigZag EA

 

ZigZag EA:

Expert Advisor based on ZigZag indicator. Working with pending Buy Stop and Sell Stop orders.

ZigZag EA

Author: Vladimir Karputov

 
Great EA, works well if configured properly, could have the "trailing stop" and "trailing step" also in "FIBO" instead of points, would be interesting. Only one parameter does not work for me that is "Risk", this parameter does not work for some markets like S&P500 and others of the kind that start with "lots from 1.0", if you configure "Risk 1% opens volume lot of 2.0K", you can solve this in the code? Thanks for sharing this great EA!
 
kwlin_089 :
Great EA, works well if configured properly, could have the "trailing stop" and "trailing step" also in "FIBO" instead of points, would be interesting. Only one parameter does not work for me that is "Risk" , this parameter does not work for some markets like S&P500 and others of the kind that start with "lots from 1.0" , if you configure "Risk 1% opens volume lot of 2.0K" , you can solve this in the code? Thanks for sharing this great EA!

Are you talking about the MetaQuotes-Demo server?

 
Vladimir Karputov :

Are you talking about the MetaQuotes-Demo server?

No in the MetaQuotes-Demo server the volume of lots of these markets start at 1.0 and not from 0.01, that lot volume that I'm using in the example goes from 1 in 1, for example 1.0, 2.0 , 3.0, 4.0, 5.0 and so on, because this is a market as is the case of the S&P500, below I leave a picture explaining what happens. It would be very interesting this EA and all that you develop working power not only forex, but for all markets, I believe that only a few lines of code can be changed for this to work, but I need your help!

below in the image the second example is what should happen but using the risk parameter, the second example works perfectly with the lot parameter.

Files:
MM_EA.jpg  620 kb
 
kwlin_089 :

No in the MetaQuotes-Demo server the volume of lots of these markets start at 1.0 and not from 0.01, that lot volume that I'm using in the example goes from 1 in 1, for example 1.0, 2.0 , 3.0, 4.0, 5.0 and so on, because this is a market as is the case of the S&P500, below I leave a picture explaining what happens. It would be very interesting this EA and all that you develop working power not only forex, but for all markets, I believe that only a few lines of code can be changed for this to work, but I need your help!

below in the image the second example is what should happen but using the risk parameter, the second example works perfectly with the lot parameter.

There are no such symbols on the MetaQuotes server - so I can not check anything. Excuse me.

 
Hi. I am testing the Expert Advisor on a real account. When a trade goes negative, it can last for a long time because of the large size of stop loss. I think it is reasonable to continue opening orders when there is a signal, so I suggest adding the possibility of opening more than one trade to the EA. Optimisation will give the answer.
 
Victor Volovin:
Hi. I am testing the Expert Advisor on a real account. When a trade goes negative, it can last for a long time because of the large size of stop loss. I think it is reasonable to continue opening orders when there is a signal, so I suggest adding the possibility of opening more than one trade to the EA. Optimisation will give the answer.

More than one position or multidirectional positions will make it impossible to trade on netting accounts.

 
Victor Volovin:
Hi. I am testing the Expert Advisor on a real account. When a trade goes negative, it can last a long time because of the large size of the stop loss. I think it is reasonable to continue opening orders when there is a signal, so I suggest adding the possibility of opening more than one trade to the EA. Optimisation will give the answer.

Discussion topic about ZigZag: Strategy based on "ZigZag" indicator - "Last ZZ50"

 
Vladimir Karputov:

More than one position or multidirectional positions will make it impossible to trade on netting accounts.

This can be realised with the included parameter

 
Victor Volovin:

It can be implemented with an included parameter

No. I'm not a fan of lumping everything together. Netting is separate, hedge is separate.

 

There is a problem for my use that I tried to adjust but it did not work, the STOP LOSS and TAKE PROFIT are not being positioned.

Example: TAKE PROFIT = 100% and STOP LOSS 0.0% as configured in the image below but do not place the stop or take profit.

Files: