molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming

AFTER YOU REGISTER SEND US AN EMAIL TO ACTIVATE YOUR ACCOUNT - Before posting:-1- Please read the user guide -2- Try the examples -3- Search in the forum
It is currently Sun May 19, 2024 7:18 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: pls guide me how to build my own EA
PostPosted: Tue Sep 06, 2011 1:35 pm 
Offline

Joined: Fri Sep 02, 2011 2:24 pm
Posts: 4
i have build my own indicator, but i do not know how to build a EA to trade,

my indicator is separate windows (i call it "Price GPS")
the setting : 1) draw line
2) calculation = (Close i)-(close i+11)
3) after that when i apply this indicator i added a level= 0
i would like to run a EA when: 1) when the "price line" is cross over the level 0 from "-" to "+" will setup a buy stop pending order
the buy stop = (High i+10)
the Stop loss = (Low i+10)
the ts = (Low i+11)
the pending order only last for 1 candle. (if i use H4 chart, then only valid for 4hrs)

2) when the "price line" is cross over the level 0 from "+" to "-" will setup a sell stop pending order
the sell stop = (Low i+10)
the Stop loss = (High i+10)
the ts = (High i+11)
the pending order only last for 1 candle. (if i use H4 chart, then only valid for 4hrs)
please reply me ASAP
thank you,

derek


Top
 Profile  
 
 Post subject: Re: pls guide me how to build my own EA
PostPosted: Tue Sep 06, 2011 5:24 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Import your indicator into the strategy builder. See viewtopic.php?f=3&t=162
If you do not know how to identify your signals post the indicator here (.moi file)
There are plenty of examples here http://www.molanis.com/products/molanis ... rs-for-mt4 that explain how to do a cross or compare with numbers. In short use user defined number in the TA icon.


Top
 Profile  
 
 Post subject: Re: pls guide me how to build my own EA
PostPosted: Wed Sep 07, 2011 2:59 am 
Offline

Joined: Fri Sep 02, 2011 2:24 pm
Posts: 4
hi,
i did import my indicator, but i do not know how to set the signal.
i want to program a pending buy stop order the trend line cross over the level=o from - to +,
but how to i compare it?
i choose my indicator(ok) >= level=0(but where to i choose the level=0????)
this cause me cannot continue to setup my EA

please reply asap
thank you


Top
 Profile  
 
 Post subject: Re: pls guide me how to build my own EA
PostPosted: Wed Sep 07, 2011 8:32 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
You need to use a cross. Something like indicator in previous bar <0 and indicator in current bar > 0 (use shift 0 for current and shift 1 for previous. But first make sure you are using the right mode to get the right signal. Read the link I posted before. If you need further help you need to post your indicator. (If you think about it, you are saying what is the signal of my indicator? but I am not showing it to you so you have to guess - and you better be right :) )


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by Molanis © 2009