[Archive!] WRITING A COUNTRY TOGETHER!!! - page 13

 

UPR ???

can you elaborate :)

 
RomanS >> :

UPR ???

can you elaborate :)

WPR Oscillator

 
Reshetov >> :

WPR oscillator

Thank you

 
RomanS >> :

For example, I just sketched out a simple Expert Advisor on the above indicator in about 5 minutes. Just open buy when the green curve is higher than all and the black one is lower than all and open sell when it is the opposite. Stop and profit are fixed. Here are the results for 2008.

Here is the code

The code was written in this thread that it is very long and complicated ))))

As you can see, the Expert Advisor is just elementary and cannot be called disastrous (at least according to the chart)

It has many disadvantages ... For example, it closes profitable positions and immediately opens another one in the same direction :)

So, it is possible to try to wind it up as it was suggested above, maybe somebody will have a desire to try it...


I wonder how this rudimentary expert was tested ? the tester only works on one pair...

 
sllawa3 >> :

I wonder how this rudimentary expert was tested? The tester only works on one pair...

I am testing it on one pair. So far it is only working on "EURUSD". Other pairs are connected without any problems. For correct testing we MUST use EURUSD USDJPY GBPUSD pairs tested on М5. It may be done on another timeframe, but there is no sense.

 
so the test won't read information from the other pairs anyway...
 

By the way... handy block... can be freely added to any expert... (as an extra condition)

 RefreshRates();
     USD = -(iClose("EURUSD",NULL,0)-iMA("EURUSD",NULL, Period_MA,0,1,0,0))-
            (iClose("GBPUSD",NULL,0)-iMA("GBPUSD",NULL, Period_MA,0,1,0,0))+
            (iClose("USDJPY",NULL,0)-iMA("USDJPY",NULL, Period_MA,0,1,0,0))/iClose("USDJPY",NULL,0);
     EUR =  (iClose("EURUSD",NULL,0)-iMA("EURUSD",NULL, Period_MA,0,1,0,0))+
            (iClose("EURUSD",NULL,0)*iClose("USDJPY",NULL,0)-iMA("EURUSD",NULL, Period_MA,0,1,0,0)*iMA("USDJPY",NULL, Period_MA,0,1,0,0))/iClose("USDJPY",NULL,0)+
            (iClose("EURUSD",NULL,0)/iClose("GBPUSD",NULL,0)-iMA("EURUSD",NULL, Period_MA,0,1,0,0)/iMA("GBPUSD",NULL, Period_MA,0,1,0,0))*iClose("GBPUSD",NULL,0);
     GBP =  (iClose("GBPUSD",NULL,0)-iMA("GBPUSD",NULL, Period_MA,0,1,0,0))+
            (iClose("GBPUSD",NULL,0)*iClose("USDJPY",NULL,0)-iMA("GBPUSD",NULL, Period_MA,0,1,0,0)*iMA("USDJPY",NULL, Period_MA,0,1,0,0))/iClose("USDJPY",NULL,0)-
            (iClose("EURUSD",NULL,0)/iClose("GBPUSD",NULL,0)-iMA("EURUSD",NULL, Period_MA,0,1,0,0)/iMA("GBPUSD",NULL, Period_MA,0,1,0,0))*iClose("GBPUSD",NULL,0);
     JPY = -(iClose("USDJPY",NULL,0)-iMA("USDJPY",NULL, Period_MA,0,1,0,0))/iClose("USDJPY",NULL,0)-
            (iClose("EURUSD",NULL,0)*iClose("USDJPY",NULL,0)-iMA("EURUSD",NULL, Period_MA,0,1,0,0)*iMA("USDJPY",NULL, Period_MA,0,1,0,0))/iClose("USDJPY",NULL,0)-
            (iClose("GBPUSD",NULL,0)*iClose("USDJPY",NULL,0)-iMA("GBPUSD",NULL, Period_MA,0,1,0,0)*iMA("USDJPY",NULL, Period_MA,0,1,0,0))/iClose("USDJPY",NULL,0);

 // Критерии открытия позиций по EURUSD 
 if ( USD> EUR && USD> GBP && USD> JPY && EUR< USD && EUR< GBP && EUR< JPY) Open_Sell = true;
 if ( USD< EUR && USD< GBP && USD< JPY && EUR> USD && EUR> GBP && EUR> JPY) Open_Bay = true;

 
sllawa3 >> :
so the test won't read info from other pairs anyway...

Why not???

from other currencies only marketinfo doesn't work, and I don't use it here.

>> everything works fine.

 

NOT A BAD IDEA... THIS MONTH TEST ON 1 : 200 LEVERAGE WITH 5 TRAWL AND FLOATING LOT 0.33DP M1 HEDGE 30 (COMMON EXPERT ADVISOR ON STOCHASTIC WITH ADDITION OF ABOVE BLOCK)

Bars in history 25277
190525 ticks simulated
Chart mismatch errors 0
Initial deposit 100.00
Net profit 335.40
Total profit 335.40
Total loss 0.00
Profitability
Expectation of winning 4.79
Absolute drawdown 17.40
Maximum drawdown 100.30 (31.14%)
Relative drawdown 31.14% (100.30)
Total trades 70
Short positions (% win) 7 (100.00%)
Long positions (% win) 63 (100.00%)
Profitable trades (% of all) 70 (100.

00%)
Loss trades (% of all) 0 (0.00%)
Largest
profitable trade 25.20
losing trade 0.00
Average
profitable trade 4.79
losing trade 0.00
Maximum
continuous wins (profit) 70 (335.40)
continuous losses (loss) 0 (0.00)
Maximum
continuous gains (number of wins) 335.40 (70)
continuous loss (number of losses) 0.00 (0)
Average x
 
sllawa3 >> :

NOT A BAD IDEA... FOR THIS MONTH TEST ON LEVERAGE 1 : 200 WITH TRAWL 5 LOT 0.33 DEPT M1 HEDGE MASH 30 (NORMAL EXPERT ON STOCHASTIC WITH THE ADDITION OF THE ABOVE BLOCK)

Anyway, that's what I meant, it can be used just as an additional indicator, to an already built system. Moreover, it is a multivalent indicator. In other words, you can build infinitely many systems on it. Who has specific suggestions with code, let's discuss ;)

Reason: