Forum

Can I take data from my EA and use it in an Indicator?

My EA has two prices stored in two double variables. I want to plot those two prices as horizontal lines and then plot a histogram in between them. I can only plot a histogram between two buffers in an indicator. The values exist only inside the EA. How can I get the values from me EA into the

Get Price Levels of Rectangle

Hi, I have rectangles on my chart and I want to be able to grab their price levels in my EA but I cannot seem to extract that from the existing object. I can only change them. Does anyone know how to get the price levels of an existing rectangle? The following returns "Name: Rectangle 789 Price: 1"

MT4 vs TradingView - Stochastic produces different numbers

Hi, If you enter a Stochastic with inputs 9,3,3 in both tradingview and mt4 you get different results. Does anyone know how I can adjust MT4 to match tradingview ? Here is the out of the box code for MT4 Stochastic: //+------------------------------------------------------------------+ //|