Weekend evening - page 37

 
Vladimir Karputov:

So, it is clear. It will be better if the Expert Advisor itself, at the moment of a new candle's birth on the period D1, moves the line "L1" to the maximum (OPen or CLose) of the previous day and the line "L2" to the minimum (OPen or CLose) of the previous day.

It is supposed that the lines "L1" and "L2" are on the chart and they were drawn manually. Both lines must be"Horizontal line" but not "Trend line".

Yes. OK. BUT! Lines have to be drawn on hourly charts on candlestick bodies. SHADOWS CANNOT BE TAKEN INTO ACCOUNT. Only the maximal and minimal values of the candle body from the list of 24 candlesticks. I attached a picture with an explanation.

P.S. Because of gaps at the top or bottom of the chart, it could be that the minimum point is either Close Candle or Open. The same is with the upper line. This should be taken into account.
Files:
123123.jpg  92 kb
 
Here is an example of a bullshit build, as it should NOT be. From the D1 chart we look at the hourly candles. The lines do not meet our requirements at all.
Files:
12312312312.jpg  62 kb
 
Rad89:
Here is an example of a shitty construction, as it should not be. From the D1 chart we look at hourly candlesticks. The lines do not meet our requirements at all.

Two Trend Line.mq5
version "1.000"


So far moves the lines on the highs and lows found on the H1 of the previous day. How to check in the tester:

  • in the terminal, scroll through the chart to the desired date and add two horizontal lines
  • Save the chart template under the name "Two Trend Lines".
  • Start the tester in visualization mode from the desired date
Files:
 
Vladimir Karputov:

Two Trend Line.mq5
version "1.000"


So far moves the lines on the highs and lows found on the H1 of the previous day. How to check in the tester:

  • in the terminal, scroll through the chart to the desired date and add two horizontal lines
  • Save the chart template under the name "Two Trend Lines".
  • Start the tester in visualization mode from the desired date

AWESOME!

 
Vladimir Karputov:

Two Trend Line.mq5
version "1.000"


So far moves the lines on the highs and lows found on the H1 of the previous day. How to check in the tester:

  • in the terminal, scroll through the chart to the desired date and add two horizontal lines
  • Save the chart template under the name "Two Trend Lines".
  • Start the tester in visualization mode from the desired date

I see: All those unnecessary things like stop-losses, trawls, take-profits... all this will be removed later?

 
Rad89:

My understanding: then all these unnecessary things like stoploops, trawls, takeprofits... does that go away afterwards?

What if we need it? If Stop Loss, Take Profit and Trailing are not necessary - they are set to "0" and that's it: these parameters are disabled.

Общие принципы - Торговые операции - MetaTrader 5
Общие принципы - Торговые операции - MetaTrader 5
  • www.metatrader5.com
Перед тем как приступить к изучению торговых функций платформы, необходимо создать четкое представление об основных терминах: ордер, сделка и позиция. — это распоряжение брокерской компании купить или продать финансовый инструмент. Различают два основных типа ордеров: рыночный и отложенный. Помимо них существуют специальные ордера Тейк Профит...
 
Vladimir Karputov:

What if you need it? If Stop Loss, Take Profit and Trailing are not needed - they are set to "0" and that's it: these parameters are disabled.

Okay. All right, fine. So far, owls don't know how to trade, do they?
 
Rad89:
(Sighs) Okay. Okay, good. As long as owls don't know how to trade, right?

Yes. The weekend is coming to an end ...

 
Vladimir Karputov:

Yes. The weekend is coming to an end ...

To be continued next week?)
Thank you!) have a good and productive week!
 

Two Trend Line.mq5

version "1.001"


Stop Loss, Take Profit and Trailing are disabled. When opening a position, a comment ("UP" or "DOWN") is added, to understand which line has triggered the signal.

Files: