Forum

How do I make a New Chart WIndow That shows a new Candle every 10 Ticks ?

I was trying but It doesnt work, I really do not know how to make it, please help. The Base Code: //+------------------------------------------------------------------+ //| 10TicksEveryCandle.mq5 | //| Copyright 2026

How can I create an Chart-Window, like USD/EUR but a new candle shows up every 10 ticks or better every 10 sec?

I am tying to make a EA that creates a new Chart Window And It works but the candles do not show up every 10 seconds only like One Minute because it is taking the base information from the 1Min lets say USD/EUR Chart:(Here is the code)

I get the same Problem(Open parenthesis expected) in the if(impulseSize <= Point * 10) Line and I tried everthing but the same Problem occurs the whole time. Can somebody Help me?

#property script_show_inputs struct Swing { int index; double price; }; input int ZigDepth = 4 ; input int ZigDeviation = 1 ; input int ZigBackstep = 1 ; input double FibLowPct = 61.8 ; input double FibHighPct = 100.0 ; input int NextBarsToCheck = 200 ;