Page 176 of 180
Re: Coding Help
Posted: Wed Mar 05, 2025 9:28 pm
by Tunedx1
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.
Re: Coding Help
Posted: Wed Mar 05, 2025 10:47 pm
by Ogee
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
Posted: Thu Mar 06, 2025 1:53 pm
by budhi1976
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
Posted: Sat Mar 22, 2025 7:40 am
by almostprofitable101
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

Re: Coding Help
Posted: Sat Mar 22, 2025 9:09 am
by wojtek
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.
Re: Coding Help
Posted: Sat Mar 22, 2025 11:10 am
by almostprofitable101
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

Re: Coding Help
Posted: Sat Mar 22, 2025 11:56 am
by wojtek
One more remark: some variables as e.g. 'last' should be
declared as buffers, otherwise the indicator may repaint.
Re: Coding Help
Posted: Sat Mar 22, 2025 12:11 pm
by almostprofitable101
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 ?
Re: Coding Help
Posted: Sat Mar 22, 2025 12:15 pm
by wojtek
0 is the current candle that is being formed,
and then the numbering is from right to left, +1, +2, +3, etc.
0 - 1, 0 - 2 are candles that will be created in the future
- if they are in the code, it means the code is incorrect
and the indicator will repaint.
Re: Coding Help
Posted: Sat Mar 22, 2025 12:22 pm
by almostprofitable101
wojtek wrote: Sat Mar 22, 2025 12:15 pm
0 is the current candle that is being formed,
and then the numbering is from right to left, +1, +2, +3, etc.
0 - 1, 0 - 2 are candles that will be created in the future
- if they are in the code, it means the code is incorrect
and the indicator will repaint.
