Forex
Google

Go Back   Forex Trading > Programming > Metatrader Programming
Forex Forum FAQ Members List Calendar Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

 
 
LinkBack Thread Tools
 
Old 08-20-2007, 08:16 AM
droesparky's Avatar
droesparky droesparky is offline
Senior Member
 
Join Date: Apr 2006
Posts: 390
droesparky is on a distinguished road
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.
Attached Files
File Type: mq4 Nina_StepMA_1_Custom3.mq4 (6.8 KB, 22 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 08-20-2007, 08:23 AM
mladen's Avatar
mladen mladen is online now
Senior Member
 
Join Date: Oct 2006
Posts: 223
mladen is on a distinguished road
Quote:
Originally Posted by droesparky View Post
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.
PHP Code:
#property indicator_level1 0.32
#property indicator_level2 0.68 
Put it anywhere in the beggining of the code with other #property statements
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 08-20-2007, 08:25 AM
droesparky's Avatar
droesparky droesparky is offline
Senior Member
 
Join Date: Apr 2006
Posts: 390
droesparky is on a distinguished road
Thanks mladen that was fast.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 09-06-2007, 12:49 AM
MrPip MrPip is offline
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 551
MrPip is on a distinguished road
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
Attached Files
File Type: mq4 JuiceLevelsAlert.mq4 (4.0 KB, 20 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting An Expiration Date On Indicator emersond Indicators - Metatrader 4 10 08-05-2007 09:33 AM
Setting up StopLoss by indicator, not by pips.... fxgroup Setup Questions 0 08-04-2007 09:48 PM
Dynamic Indicator Levels Linuxser Metatrader 4 mql 4 - Development course 0 11-19-2006 11:42 PM
Auto-Set Levels on indicator iscuba11 Setup Questions 2 07-27-2006 04:05 PM


All times are GMT. The time now is 10:31 AM.