Re: Coding Help

1752
Tunedx1 wrote: Wed Mar 05, 2025 9:28 pm Is it me or is anybody else having problems with this indicator? Let me know if it worked for you guys. This was the best of its kind...with so many settings you won't find in all the rest out there. I wish somebody knew how to make one exactly the same with all its settings.
Not showing up on chart, might be due to recent MT4 update Build 1440.

Not able to look inside an EX4 file, do you have the MQ4 one?

Re: Coding Help

1753
I will give it a try. Many thanks mrtools
mrtools wrote: Wed Mar 05, 2025 3:30 pm Not sure, got it on a couple of charts, don't know if it will help maybe lower your max bars brought mine down to 25k and also added

Code: Select all

ChartSetInteger(0,CHART_FOREGROUND,true); 
in the beginning of the code to better see the candles, maybe that will help.

Re: Coding Help

1754
could somebody help a little by helping me understand the logic of this 3 bar reversal. im trying to redo it to fit a different criteria because i dont think its picking the correct bars. ill put picture examples. what im really asking is i understand the ( <> ) but the ( && ) im confused does it add to the logic before it or is it a break in logic for the next condition 🤦‍♂️
this is a example of 3 bar reversal im trying to find this is a example of 3 bar reversal im trying to find
this is the logic it came with this is the logic it came with

Re: Coding Help

1755
The number means the numbering of candles from right to left,
where 0 is the number of the current candle, 1 - the first candle to the left of 0,
2 - the second candle to the left of 0, etc.

The letter c denotes the Close price, o - Open (high - High, low - Low), so e.g. c2 means
the close price of the second candle to the left of the current candle (i.e. 0),
and finally && denotes the logical conjunction ('and' / & in normal life),
so all conditions in brackets must be fulfilled simultaneously.
These users thanked the author wojtek for the post (total 2):
vvFish, almostprofitable101


Re: Coding Help

1756
wojtek wrote: Sat Mar 22, 2025 9:09 am The number means the numbering of candles from right to left,
where 0 is the number of the current candle, 1 - the first candle to the left of 0,
2 - the second candle to the left of 0, etc.

The letter c denotes the Close price, o - Open, h - High, l - Low, so e.g. c2 means
the close price of the second candle to the left of the current candle (i.e. 0),
and finally && denotes the logical conjunction ('and' / & in normal life),
so all conditions in brackets must be fulfilled simultaneously.
i get the o/c. i didnt know the 0-1-2 i fought 0 was first candle - 1 next and 2 current will try in opposite of what i was doing, and && is another condition not continuation of previous 🙌 will have another play with it 👌🏽
code where i figured some bits code where i figured some bits

Re: Coding Help

1758
wojtek wrote: Sat Mar 22, 2025 11:56 am One more remark: some variables as e.g. 'last' should be
declared as buffers, otherwise the indicator may repaint.
not so sure about the 0 1 2 order it looks like its based of 0 as first candle (right) 0+1 second candle and 0+2 as current candle is that correct looking at the extra code ?
if 0 was current would it be 0-1 , 0-2 etc ?