Replace big Candle with Candlesticks

Avatar
  • updated
  • Completed

Hi I´d like to make the suggestion to replace the big candle filter with these candlestick patterns. If possible as we reached the max inputs i believe? 


There´d the code: https://www.mql5.com/en/code/291 

If not possible I´m trying to find and an already build indictor so it can be used in the custom indicator tab. 

Avatar
1
Andrey Khatimlianskyi
Quote from Jerome Powell

Yes got it, but how should I know when I should use true or false? Thats what I mean u worded it perfectly. I looked in the data window but i can´t comprehend what I should tell me at first.

"Allow negative and zero values

Set True for indicators that can contain 0 or negative value by design (for example, MACD).

Set False for indicators that draw arrows and fill empty values with zeros (not EMPTY_VALUE constant)."

But when I read it with no coding knowledge I honestly have no Idea. Thats why I´m sorry for not understanding what you mean but more greatful for helping me out. Have you any book suggestion so that I can understand it more properly and be a more helpful member of this community? 

All is well, thank you for being active!

Avatar
0
Jerome Powell
Quote from Andrey Khatimlianskyi

I meant this

Image 6091

Yes got it, but how should I know when I should use true or false? Thats what I mean u worded it perfectly. I looked in the data window but i can´t comprehend what I should tell me at first.

"Allow negative and zero values

Set True for indicators that can contain 0 or negative value by design (for example, MACD).

Set False for indicators that draw arrows and fill empty values with zeros (not EMPTY_VALUE constant)."

But when I read it with no coding knowledge I honestly have no Idea. Thats why I´m sorry for not understanding what you mean but more greatful for helping me out. Have you any book suggestion so that I can understand it more properly and be a more helpful member of this community? 

Avatar
0
Andrey Khatimlianskyi
Quote from Jerome Powell

Could you please attach the setfile. And I´m sorry after disable what you said, its still not working. I´m trying to figure it out, also studying your manual but some things I can´t comprehend such as the meaning of the AllowNegativAndZero. I guess I have to learn a bit more about coding as this will extend the understanding of what I know. Again I´m sorry and thank you for your help! 

I meant this

Image 6091

Avatar
0
Jerome Powell
Quote from Andrey Khatimlianskyi

It works fine:

Image 6090

Could you please attach the setfile. And I´m sorry after disable what you said, its still not working. I´m trying to figure it out, also studying your manual but some things I can´t comprehend such as the meaning of the AllowNegativAndZero. I guess I have to learn a bit more about coding as this will extend the understanding of what I know. Again I´m sorry and thank you for your help! 

Avatar
0
Andrey Khatimlianskyi
  • Completed

Please, upload the working set here as soon as you have it. So others can also understand how it works and use it.

Thank you!

Avatar
0
Andrey Khatimlianskyi

It works fine:

Image 6090

Avatar
0
Andrey Khatimlianskyi
Quote from Jerome Powell

Unfortunately still buy and sell activated at the same time. I tried "on new arrow" with that its not at the same time. But Buys/Sells pretty randomly. I dont need to adjust the indicator settings as its only true and false if i want to use this candle stick or not. 

If you had looked in the Data window as I suggested, you would have seen that the ‘empty’ values are zeros.

So you need to disable the AllowNegativeAndZero option.

Avatar
0
Jerome Powell
Quote from Andrey Khatimlianskyi

Now try "On arrow" mode.

To check the indicator buffers, you can open Data window (Ctrl+D) and move mouse over the bars.

Unfortunately still buy and sell activated at the same time. I tried "on new arrow" with that its not at the same time. But Buys/Sells pretty randomly. I dont need to adjust the indicator settings as its only true and false if i want to use this candle stick or not. 

Avatar
0
Andrey Khatimlianskyi
Quote from Jerome Powell

I tried what you said thank you Andrey. But Now Buy/Sell is activated all the time. 

Candlestick2.set

I believe its because the indicator does not really sends an arrow. The colour of the "name" of the candlestick changes to Red for sell for example. 

Image 6088

Now try "On arrow" mode.

To check the indicator buffers, you can open Data window (Ctrl+D) and move mouse over the bars.

Avatar
0
Jerome Powell
Quote from Andrey Khatimlianskyi

Your settings don't look correct.

Try to start with current timeframe, without indicator inputs, with "In the direction of the last arrow" mode, and check all other parameters (why do you have LevelMaxS=0, DrawInSubwindow=true?).

I tried what you said thank you Andrey. But Now Buy/Sell is activated all the time. 

Candlestick2.set

I believe its because the indicator does not really sends an arrow. The colour of the "name" of the candlestick changes to Red for sell for example. 

Image 6088