Setting the levels in a indicator

 

Is there a way to set the levels on an indicator where each time you use the indicator you dont have to reset them.

for instance I want the levels on this indicator to be set at .68 and .32, and be there each time I use the indicator.

Can someone show me the code to do this and tell me where to put it.

 
droesparky:
Is there a way to set the levels on an indicator where each time you use the indicator you dont have to reset them.

for instance I want the levels on this indicator to be set at .68 and .32, and be there each time I use the indicator.

Can someone show me the code to do this and tell me where to put it.

#property indicator_level1 0.32

#property indicator_level2 0.68

Put it anywhere in the beggining of the code with other #property statements

 

Thanks mladen that was fast.

 

setting levels in indicator

If you study this indicator you will see another method. The levels can be inputs to the indicator instead of using #property.

Robert

Files:
Reason: