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

Yes, better to find a custom indicator with candlestick patterns and connect it to the EA.

As for the number of input parameters, I almost fixed that - all unnecessary parameters like GUI colours and line styles are loaded from the set file.

Avatar
0
Jerome Powell

Candlestick.set

I tried to do it with the custom indicator, but its not getting the results. 

https://www.mql5.com/en/code/11432 ( i use that indicator) 


Thanks to Ulises Power Script, I was able to set the parameters ( big thank you) the indicator is indeed loading into the strategy tester but isnt buying or selling on the candles properly. 

"SetIndexBuffer(0,upArrow);
SetIndexBuffer(1,downArrow);" Also been set correctly in the parameters tab. 

Anyone help what I´ve been doing wrong? 


Thank you! 

Avatar
0
Jerome Powell
Quote from Andrey Khatimlianskyi

Yes, better to find a custom indicator with candlestick patterns and connect it to the EA.

As for the number of input parameters, I almost fixed that - all unnecessary parameters like GUI colours and line styles are loaded from the set file.

Thats my progress so far, but doesnt bring results. It pretty buys and sells randomly. Maybe because the Indicator not really prints any arrows?

Avatar
0
Andrey Khatimlianskyi
Quote from Jerome Powell

Candlestick.set

I tried to do it with the custom indicator, but its not getting the results. 

https://www.mql5.com/en/code/11432 ( i use that indicator) 


Thanks to Ulises Power Script, I was able to set the parameters ( big thank you) the indicator is indeed loading into the strategy tester but isnt buying or selling on the candles properly. 

"SetIndexBuffer(0,upArrow);
SetIndexBuffer(1,downArrow);" Also been set correctly in the parameters tab. 

Anyone help what I´ve been doing wrong? 


Thank you! 

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?).

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

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

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

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
Andrey Khatimlianskyi

It works fine:

Image 6090

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!