Jump to content

(ASK) Help adding this indicator


zoop

Recommended Posts

i have this tick speed indicator called " speedometer_v1.mq4" and i want to add to an ea to test it

 

speedlimit above 5 then buy

speedlimit below -5 then sell

 

is this way correct?

 

extern int SpeedLimit=5;

 

 

 

double SPEED=iCustom(NULL,0,"Speedometer_v1",SpeedLimit,0);

 

 

 

if(SPEED>SpeedLimit ){ buy=true;

 

if(SPEED<- SpeedLimit){ sell=true;

 

 

 

 

thanks,

Zoop

Edited by zoop
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...