So what can I do to help? Where is the councillor?
Can someone tell me how to do this: I need a certain action to take place when ZZ fixes its point on the Ihigh or Ilow bar, and it doesn't matter if it redraws it afterwards or not. How to implement this? I guess the ZZ line itself is contained in ZigzagBuffer? Or do I need to use HighMapBuffer and LowMapBuffer in ZZ?
So, no one can help?) Specifically, I need to do this: if the zigzag line drawn to HIGH or LOW, then I need to open a position (if the HIGH - sell, and if the LOW - buy), and it does not matter whether the redraw the zigzag or not. This is a sample code, correct me if I'm doing something wrong because the tester keeps showing ordersend error 130:
double ZZ_1 = iCustom(NULL,0,"ZigZag",0,0,1); if ( ZZ_1 == iHigh(Symbol(), Frame,1)) OrderSend(Symbol(),OP_SELL, Lot(),Bid,10, ZZ_1+10*Point,Bid-10*Point,"SELL",0,0,Red); if ( ZZ_1 == iHigh(Symbol(), Frame,1)) OrderSend(Symbol(),OP_BUY, Lot(),Ask,10, ZZ_1-10*Point,Ask+10*Point,"BUY",0,0,Blue);
So, no one can help?) Specifically, I need to do this: if the zigzag line drawn to HIGH or LOW, then I need to open a position (if the HIGH - sell, and if the LOW - buy), and it does not matter whether the redraw the zigzag or not. This is a sample code, correct me if I'm doing something wrong because the tester keeps showing ordersend error 130:
try this
double ZZ_1 = iCustom(NULL,0,"ZigZag",0,0,1); if ( ZZ_1 == iHigh(Symbol(), Frame,0)) // вместо iHigh(Symbol(), Frame,1)) OrderSend(Symbol(),OP_SELL, Lot(),Bid,10, ZZ_1+10*Point,Bid-10*Point,"SELL",0,0,Red); if ( ZZ_1 == iHigh(Symbol(), Frame,0)) // вместоiHigh(Symbol(), Frame,1)) OrderSend(Symbol(),OP_BUY, Lot(),Ask,10, ZZ_1-10*Point,Ask+10*Point,"BUY",0,0,Blue);
Well it's the previous bar I'm after!
Try setting the stops further away e.g. 15
I've already put 100, it's still an error of 130. Which zigzag buffer should I use? ZigzagBuffer? Or should I use HighMapBuffer and LowMapBuffer? Oh, man. The code should be simple, but no one can tell me anything like that .....
it's harder to understand someone else's code than your own.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
For a year now I have been writing all sorts of EAs, all of them either losing or profitable, but with huge drawdowns of half the depo. I have been writing all kinds of EAs for a year now, all of which were either losing or profitable, but with huge drawdowns of half of the depo. But I need help. My Expert Advisor works on a minute chart. The strategy takes from 10 to 40 points of profit based on the signal indicator. But the problem is that there is no signal to close (reverse entry signal is not logical in my strategy, and I do not use trawl). Do you know how to solve this problem with M1 chart? What kind of trawl, if any? I thought about it because my Expert Advisor only takes some part of the movement, i.e. it takes 20 points when it could take 60. Here is a screenshot of the EA operation in the period from September 1 till October 30 of this year. Of course the range is small, 2 months, but even during those 2 months the tester was testing for 1.5 hours (in bar opening mode), I will try to test it for a longer time interval ...