[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 723

 
Abzasc:

The angle has to be taken into account, it's complicated...

What do you mean by "price has crossed the trendline from top to bottom"? The price has crossed it, so the indicator has crossed it. No?

Maybe.

First point of the line 5 bars = price 1

Second point 1 bar = price 2

Third point 0 bar at the intersection of the vertical with the trend

 
Abzasc:

The angle has to be taken into account, it's complicated...

What do you mean by "price has crossed the trendline from top to bottom"? The price has crossed it, so the indicator has crossed it. No?

Nah... :))
 
OneDepo:

Here, everything works on a 5-digit scale. Maybe you are working on 4 digits, then just scale down the price or reduce the script parameters.

Incorrect.

You have a default setting of SL and TP.

Why else would there be red dashes?

Try to set the TP and SL to zero in the settings.

 
artmedia70:

In the course of the code, we have this construction:

LastTimeDN and PreLastTimeDN are of datetime type. After performing the above operations these variables contain the number of seconds since the year ... of my birth ...
Tell me how to convert them to bar numbers ?
You're giving me some charcoal, man... iBarShift()...
 
artmedia70:
You've got some coal, man... iBarShift() ...
О!!! Thanks, man...
 
artmedia70:
You've got some coal, man... iBarShift() ...
artmedia70:
О!!! Thanks, man...
What was that?
 
Swetten:

Wrong.

You have SL and TP set by default.

Why else would you have red dashes?

Try to set the TP and SL to zero in the settings.

Svetlana! Zero is impossible! There is the proverbial:

double zazor = MarketInfo(Symbol(), MODE_STOPLEVEL);

:))))

 
Swetten:
artmedia70:
О!!! Thanks, man...
What was that?
Having fun... (Asked the question myself && Found the solution myself && Answered it myself);
 
artmedia70:

Why can't you find it on three points?
 
Abzasc:
Why can't you find it on three points?
Which ones?