I have been trying to code a simple price pattern indicator to print arrows when pattern is detected but it seems not to work. Please help out
Files:
MMM.mq5
4 kb
- Having periodic problems with my codes at times ,the code below doesnt work correctly, can someone help me out i am trying to detect if a candle is bearish or not
- Indicator shows no errors yet dont work
- EA runs with all terminal except the base currency as GBP?
- You have two buffers, but no plots. Seems to be working just fine.
- You didn't specify whether you are accessing your arrays and buffers, as non-series or as-series.
- Where do you set your buffer elements to EMPTY_VALUE when the if statement is false?
Plots property is essential in MQL5 if there are any plotted buffers.
You also need to specify the drawing type...either in the initializer:
PlotIndexSetInteger(0,PLOT_DRAW_TYPE,DRAW_ARROW); PlotIndexSetInteger(1,PLOT_DRAW_TYPE,DRAW_ARROW);
or as global properties:
#property indicator_type1 DRAW_ARROW #property indicator_type2 DRAW_ARROW
I attached the fix (this time you get a free pass)
Files:
MMM_2.mq5
5 kb
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register