Wrote an advisor, there is a problem.

 
Hello All! :)

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 ...


Strategy Tester Report
SYSTEM1
*****-Server (Build 225)

SymbolEURUSD (Euro vs US Dollar)
Period1 Minute (M1) 2009.09.01 00:00 - 2009.10.29 23:59 (2009.09.01 - 2009.10.30)
ModelBy open prices (only for Expert Advisors with explicit bar opening control)
ParametersFrame=1;

Bars in history58413Modelled ticks113928Simulation qualityn/a
Chart mismatch errors0




Initial deposit300.00



Net profit166.00Total profit240.00Total loss-74.00
Profitability3.24Expected payoff10.37

Absolute drawdown26.00Maximum drawdown40.00 (9.90%)Relative drawdown9.90% (40.00)

Total trades16Short positions (% win)15 (86.67%)Long positions (% win)1 (0.00%)

Profitable trades (% of all)13 (81.25%)Loss trades (% of all)3 (18.75%)
Largestprofitable trade20.00losing transaction-28.00
Averageprofitable deal18.46Deal loss-24.67
Maximum numbercontinuous wins (profit)7 (120.00)Continuous losses (loss)1 (-28.00)
MaximumContinuous Profit (number of wins)120.00 (7)Continuous loss (number of losses)-28.00 (1)
Averagecontinuous winnings4Continuous loss1




TimeTypeOrderVolumePriceS / LT / PProfitBalance
12009.09.01 17:27buy10.101.42601.42421.4270
22009.09.01 17:29s/l10.101.42421.42421.4270-18.00282.00
32009.09.08 08:42sell20.101.43811.43951.4371
42009.09.08 08:51t/p20.101.43711.43951.437110.00292.00
52009.09.08 12:07sell30.101.44801.45041.4470
62009.09.08 13:21t/p30.101.44701.45041.447010.00302.00
72009.09.08 15:02sell40.201.44971.45181.4487
82009.09.08 15:09t/p40.201.44871.45181.448720.00322.00
92009.09.10 20:04sell50.201.46061.46211.4596
102009.09.10 20:19t/p50.201.45961.46211.459620.00342.00
112009.09.15 19:57sell60.201.46821.46991.4672
122009.09.15 20:13t/p60.201.46721.46991.467220.00362.00
132009.09.16 08:15sell70.201.46941.47061.4684
142009.09.16 08:27t/p70.201.46841.47061.468420.00382.00
152009.09.16 20:36sell80.201.47271.47431.4717
162009.09.16 21:09t/p80.201.47171.47431.471720.00402.00
172009.09.17 07:44sell90.201.47371.47511.4727
182009.09.17 07:52s/l90.201.47511.47511.4727-28.00374.00
192009.09.22 09:37sell100.201.47841.47991.4774
202009.09.22 10:02t/p100.201.47741.47991.477420.00394.00
212009.09.22 11:59sell110.201.48071.48211.4797
222009.09.22 12:04s/l110.201.48211.48211.4797-28.00366.00
232009.10.13 13:14sell120.201.48691.48831.4859
242009.10.13 13:21t/p120.201.48591.48831.485920.00386.00
252009.10.14 04:08sell130.201.48821.48941.4872
262009.10.14 04:33t/p130.201.48721.48941.487220.00406.00
272009.10.15 03:23sell140.201.49531.49651.4943
282009.10.15 03:43t/p140.201.49431.49651.494320.00426.00
292009.10.15 07:48sell150.201.49611.49731.4951
302009.10.15 08:27t/p150.201.49511.49731.495120.00446.00
312009.10.20 03:53sell160.201.49871.49991.4977
322009.10.20 05:23t/p160.201.49771.49991.497720.00466.00
 

So what can I do to help? Where is the councillor?

 
What are your thoughts on this? What would be better to use? Let's say, I'm thinking a trawl, or with some other value. Who has had experience with EAs on M1 charts what has been used?
 
Trawl - fitting the story
 

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);
 
Noterday >> :

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 that I want!
 
Noterday >> :
Well it's the previous bar I'm after!

Try setting the stops further away e.g. 15

 
I've already put in 100, but the error is still 130. Which zigzag buffer do I need? ZigzagBuffer? Or should I use HighMapBuffer and LowMapBuffer? Oh, man. The code should be simple, but no one can tell me anything like that .....
 
Noterday >> :
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.