Forum

How to compare timeframe visibility

Hi, I have objects that i display with different timeframe visibility on the chart as such so that i don't clutter the objects onto higher timeframes. ObjectSetInteger(0,sObjName,OBJPROP_TIMEFRAMES,OBJ_PERIOD_M1|OBJ_PERIOD_M5|OBJ_PERIOD_M15); Now i want to retrieve the objects and find out what

how to display non-editable text on the chart

Hi, I am curious to find out: Those indicators / EAs that display text and lines which are not clickable or draggable, not the standard MT4 text labels that you can right click for properties or drag them around, how do they code those? Thanks

Each order has its own exit strategy, how to implement that?

Hi, I'm using classes to reduce clutter. I am trying to make each order (each ticket) be able to store their own exit strategy prices after running exit checks . i have a Class called CTicket and each instance of CTicket has their own corresponding instance of class CExitStrategy where it stores the

Declare an array of class objects

Is it possible to declare an array of class objects without specifying how many there will be? Like example i want to create an instance of a Class called CTickets, i do CTickets e_ticket; To create an array of 3 instances i do CTickets e_ticket[3] What if i don't know how many instances i will

How to pass an instance of a Class to another Class

Hi, I am trying to modularize my EA with Classes because it's getting bloated with many lines of codes. I want to put all my exit strategies into a Class (Class ExitStrategies), which will calculate and store the exit prices every time a new bar is formed and detect if the prices are hit. Then i