Forum

object function

is there a way to call an argument that asks the ea if there is an object of type " OBJ_VLINE " for example

Custom Stochastic Indicator to Display V_Line at Crossover

#property copyright "Copyright 2019, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property strict #property indicator_buffers 1 #property indicator_chart_window #property indicator_width1 1 #property indicator_color1 clrChartreuse double tops[];

Questiong about for-loop

I'm looking to place an order once the stochastic %K is below 20, the slow ma is over the fast ma, then check for an additional condition for the stochastic. If this occurs I want the for loop to look back "i." number of bars back to see if an additional condition occurs within that range. Can

indicator: if { for loop-if(statement); } }

I'm writing an indicator that for example asks to check for several conditions, then using a for-loop looks back (10 bars) to see if an event occurred after these events x & y have been verified. It in EA but I'm not sure why. Could anyone explain what it's actually doing? or is it the correct