Forum

How to find the last two ZigZag values?

Dear forum, I'm trying to get the previous two, fixed ZigZag values -- I've tried the method found here , but it doesn't seem to work. What I have now is this: for ( int k = 1 ; k < Bars ; k++){ // Get most recent ZigZag if ( iCustom ( NULL , 0 , "ZigZag" , Depth, 5 , 3 , k) > 0 ){

EA meets order opening conditions, but doesn't trade

Hey everyone, I recently got an answer to a problem I was having while trying to make an EA based on ZigZag breakouts. Looks like I got the ZigZag code working (don't worry, I realize that ZigZag repaints...), but now the EA isn't trading. I looked in the log, and the values are being displayed

How do I get high/low of fractal values as far back as the last X indicator signal?

Hey everyone, I haven't posted here much, but I try not to come here asking people to 'do work for me'... having said that, I would appreciate some advice as I'm a beginner with coding. Here's my problem... I'm trying to create a fractal breakout zone around the price for as long as the ATR is under

How do I define a variable as the moving average OF another indicator?

So I just realized that you can take moving averages of indicators in metatrader. I've been getting some decent (manual backtesting) results by taking the EMA of the ADX and combining it with the PSAR, and I'd like to automate this system. However, I need to somehow define this EMA-ADX combo