Forum

Trying to get a list of all pairs with at least one trade active - Can't stop an Array from being filled

Hi there, I'm trying to get a list of all pairs with a trade active to finally make a table with a "marketwatch" (to show some stuff on a chart) dinamically adding and removing them from the list. I think creating an array is the right way to go. So, this is my logic: - loop into active trades - get

Error "Stack Overflow" when trying to move an Horizontal Line

Hi everybody, I'm trying to write an indicator that should place a grid starting from a line at given price. It works, kind of. Actually the grid is generated correctly but I want it to be redrawn when the Level_0 line (an horizontal selectable line) is moved. I've used some of my knowledge and some

How to add alert for multiple indicator on separate indicator window?

Hi traders! I was trying to code an alert that popup when an indicator in the separate indicator window crosses a level of an other indicator in the same window. In example...there are indicators like TSI (true Strength Index) that do not have fixed maximum and minimum: if you add in the same window

Can't get the right value from a TrendChannel with iCustom

Hi everyone! I'm trying to merge some indicators using iCustom. An indicator which I have problem with is TrendChannel.mq4 Parts of the code are these: extern int degree = 1 ; extern double kstd = 2.0 ; extern int bars = 48 ; extern int shift = 0 ; extern int AlertPipRange = 5 ; extern