Forum

Can you put limits on external variables?

Hi guys! Is it possible to put limits on extern vars in the Inputs tab for an indicator? Let's say a var can be from 0 to 200. And you don't want the user to enter a value over 200 or a negative one. I know I can correct this when the indicator starts, but if he enters the value in the Inputs tab it

Dinamic TP

Hi! Does anyone know a math formula to calculate a dinamic TP based on SL distance. The smaller the SL-the bigger TP and the bigger SL-the smaller TP

CHART_EVENT_OBJECT_DELETE

Hi, everyone! I have a problem and I don't know if it's a bug. If I put this: ChartSetInteger ( ChartID (), CHART_EVENT_OBJECT_DELETE , true ); in init() it freezes my platform! it doesn't happen with ChartSetInteger ( ChartID (), CHART_EVENT_OBJECT_CREATE , true );

if in if

Hi! I need someone with a bigger and smarter brain. How can i do something like this: Add conditions in an "if" only if another condition is true. //------------------------------------------------------------------------------ if (condition1 && condition2 && if (condition3==true)

Open the Inputs tab from indicator

Hi! Does someone knows if you can open the Inputs tab from indicator with OnChartEvent? It's really annoying not having a quick access to the indicator settings