anyone interested, write a simple advisor - page 5

 
SSL in the last variant is calculated directly in the Expert Advisor with int SSL() function, just apply it (indicator) in test mode to the chart and you will see that the signals happen exactly according to the indicator
 
xrust писал (а) >> SSL in the last variant is calculated directly in the EA using int SSL() function, just apply it in test mode to the chart and you will see that the signals happen exactly according to the indicator

to dpg03

If you find xrust hard to do, insert the

SSL();

the next line and recompile the EA:

double PaintSSL=iCustom(NULL,0,"SSL",Lb,0,z);

Make sure that the indicator file ssl.ex4 is in the right directory (experts\indicators).

This line is absolutely useless and does not affect the performance of the EA, but an "empty" indicator call will make the EA draw its value on the resulting chart.

On the final chart you will see 3 red MA lines and the dashed line ssl.

- MA with period PerMA with parameters Method2 and Pr2

- MA with period Lb with price PRICE_HIGH

- MA with the period Lb with the price PRICE_LOW

The last two MAs appeared in calculations of ssl inside the Expert Advisor.

P.S.

Apologies to the author for mocking the code.

 
granit77 писал (а) >>

to dpg03

If you find xrust hard to do, insert the

SSL();

the next line and recompile the EA:

Make sure that the indicator file ssl.ex4 is in the right directory (experts\indicators).

This line is absolutely useless and does not affect the performance of the EA, but an "empty" indicator call will make the EA draw its value on the resulting chart.

On the final chart you will see 3 red MA lines and the dashed line ssl.

- MA with period PerMA with parameters Method2 and Pr2

- MA with period Lb with price PRICE_HIGH

- MA with the period Lb with the price PRICE_LOW

The last two MAs appeared in calculation of ssl inside the Expert Advisor.

P.S.

Apologies to the author for mocking the code.

Made it like this

int start()
double PaintSSL=iCustom(NULL,0, "SSL",Lb,0,z);
{int rs,rs2;


compiled it. Pressed start. Silence.


Thank you for not sending me to the programming manual yet.

 
dpg03 писал (а) >>

I did it like this.

int start()
double PaintSSL=iCustom(NULL,0, "SSL",Lb,0,z);
{int rs,rs2;


>> I compiled it, I pressed start, I got no response.

Thank you for not sending me to a textbook on programming.

You explained exactly where to insert the string, and the indicator will be drawn after the test, or do as I told you, then it will be visible during the test.

 
dpg03 писал (а) >>

Thank you for not yet sending me to a textbook on prgramming.

I was hoping you would read the advice before you rushed to implement it.

" insert the following line into the EA's start function just after the SSL(); line and recompile the EA:"

But Korey is right, if you don't have at least a little knowledge, you can't even meaningfully test someone else's EA.

 
here I have made a video of how to throw the indicator onto the chart during testing
 
granit77 писал (а) >>

I was hoping you read the advice before rushing to implement it.

" insert the following line into the EA's start function just after the SSL(); and recompile the EA:"

THANK YOU SO MUCH EVERYONE WHO HELPED.


There are 1173 bars in the history
Modelled ticks 1346
Modeling quality n/a
Chart mismatch errors 0
Initial deposit 10000.00
Net profit 4019.20
Total profit 6124.10
Total loss -2104.90
Profitability 2.91
Expected payoff 669.87
Absolute drawdown 1750.00
Maximum drawdown 2582.00 (23.84%)
Relative drawdown 23.84% (2582.00)
Total trades 6
Short positions (% win) 3 (66.67%)
Long positions (% win) 3 (66.67%)
Profitable trades (% of all) 4 (66.67%)
Loss trades (% of all) 2 (33.33%)
Largest
largest profitable transaction 2045.50
Deal Deal loss -1490.00
Average
profitable deal 1531.03
losing deal -1052.45
Maximum number
Continuous wins (profit) 2 (3491.50)
Continuous Losses (Loss) 1 (-1490.00)
Maximum
Continuous Profit (number of wins) 3491.50 (2)
Continuous loss (number of losses) -1490.00 (1)
Average
continuous winnings 2
Continuous loss 1

If you need anything else, you can go to the forum ? There are questions.

 
For me personally, reading this thread is a stockpile of goodness for the week :))
 
rider писал (а) >>
For me personally, reading this thread is a stockpile of goodness for the week :))

>> what do you mean?

 
rider писал (а) >> for me personally, reading this thread is a stockpile of goodness for the week :))

I hope the source of goodness is me and xrust?