Forum

How can I get TrendLine intermediate values?

For example, I want to connect any two points of the A/D indicator (my purpose is to detect divergence), but if there is a dip/top that exceeds the "trendline" between these two points, this drawing should not be accepted. Same goes for both prices. What I am trying to do is to create a trendline

How to ensure the code security of the indicator published in the market?

We cannot see the codes of paid or free downloads from the market in the "MetaEditor". Is this security a facility provided by the "Market" or is there an algorithm for it

How can I prevent the objects drawn with the indicator from disappearing after the terminal is closed and opened?[MQL5]

I press a button and at the end of various calculations objects are drawn on the graph. If I delete the indicator I delete the drawings with "ObjectDelete()" in the "OnDeinit()" function, it's fine. However, after drawing the indicator, I close and open the terminal and of course everything resets

How can I run the function with a button without waiting for a tick change for OnCalculate to work? [MT5]

int OnInit () { return ( INIT_SUCCEEDED ); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int OnCalculate (