[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 355

 
chief2000 писал(а) >>

Who does - I always add "if() {}" to all brackets when creating something with brackets, and then write inside what I planned.

I don't remember such mistakes :)

We will take it into account. >> Thank you.

 
Vekker писал(а) >>

And writing in person is like ...

top right corner of any forum page...

 
alsu писал(а) >>
niz=( Low[j];
use

Holy crap!!! So it wasn't a joke !!! I first looked at your poster and without looking I thought you were suggesting that I should SUSPEND THIS bracket there.

I thought it was a funny joke and thanked you for it.

Went back to my place, looked at it for a laugh - holy shit, I've got it there! Wiped it off and there we go!

I apologise for my earlier gratitude.

 
Vekker >> :


I apologise for the earlier thank you.

In that case, thank you for the apology:)))

 
Pozh.How do I count the time between ticks up and down?
 

Started to optimise the Expert Advisor by balance. Then I sorted the results by Profits and chose the one with an acceptable drawdown

(about 20%). I started the tester with these settings and found out at the end of testing that there was a period of time (dozens of trades), according to the chart

There was a sinking - my money decreased twice (something like 1000 -> 500).

- What does "Drawdown %" mean in optimization results?

- There is a "Drawdown Percent" in the optimization options - how does that work? (what will happen to Profit?)

- How to deal with drawdowns in general? (if there are any recommendations).

Thank you!

 
chief2000 >> :

- How do you deal with drawdowns in general? (if there are any recommendations)



Cardinally. Don't keep any positions open and then there will be no drawdowns.

 

Afternoon

I am trying to determine the close price difference between two candlesticks

Close1= NormalizeDouble(Close[1],5);
Close2= NormalizeDouble(Close[2],5);
Kurs = Close1-Close2;

In Alert it says the following: Close[1]=1.43811000, Close[2]=1.43934000, Kurs =0

I WONDER WHY THE PRICES ARE NOT NORMALIZED AND WHY THEIR DIFFERENCE IS ZERO IF IT IS OBVIOUS THAT IT IS LESS THAN ZERO?

 
Vekker >> :

Afternoon

Trying to determine the closing price difference between two candles

Close1= NormalizeDouble(Close[1],5);
Close2= NormalizeDouble(Close[2],5);
Kurs = Close1-Close2;

In Alert it says the following: Close[1]=1.43811000, Close[2]=1.43934000, Rate =0

I WONDER WHY THE PRICES ARE NOT NORMALIZED AND WHY THEIR DIFFERENCE IS EQUAL TO ZERO, WHEN IT IS OBVIOUSLY LESS THAN ZERO?

Kurs not int by any chance?

 
Vekker писал(а) >>

Afternoon

Trying to determine the closing price difference between two candles

Close1= NormalizeDouble(Close[1],5);
Close2= NormalizeDouble(Close[2],5);
Kurs = Close1-Close2;

In Alert it says the following: Close[1]=1.43811000, Close[2]=1.43934000, Rate =0

I WONDER WHY THE PRICES ARE NOT NORMALIZED AND WHY THEIR DIFFERENCE IS ZERO IF IT IS OBVIOUS THAT IT IS LESS THAN ZERO?

Try the other way round in Alert

Alert("Price change= ",DoubleToStr(Close[1]-Close[2],Digits));

The values are truncated to 4 significant digits.

Reason: