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 10:52 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Simple indicator in Technical indicator builder
PostPosted: Mon Apr 02, 2012 7:26 am 
Offline

Joined: Mon Apr 02, 2012 7:17 am
Posts: 6
I want to create a very simple indicator using the technical Indicator builder.

Basically the idea is
if price close is higher than open then 100
if price close is lower than open then 0

I can not seem to put this into the program.
I put in this
Close[i]>
and then when try to add the open it keeps saying
Error: Open[i] can't be added.

Help - it must be something small I am missing! Any insight appreciated. Or if someone knows of an existing indicator that performs the same function that would be great.


Top
 Profile  
 
 Post subject: Re: Simple indicator in Technical indicator builder
PostPosted: Wed Apr 04, 2012 9:36 am 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
The indicator builder does not support ifs
It was designed for continuous signals. If you need an if, you create the continuous signal, then import it into the strategy builder, in a TA create the comparison, and use the alert mode.
We will add if support for the indicator builder in the next release late this year


Top
 Profile  
 
 Post subject: Re: Simple indicator in Technical indicator builder
PostPosted: Wed Apr 04, 2012 8:13 pm 
Offline

Joined: Mon Apr 02, 2012 7:17 am
Posts: 6
Hi,

Thanks for the reply.

Sorry I should not have put the word if in my post. I have not been using if as I saw it was not able to be used from browsing knowledge base.


My main issue is this part " I can not seem to put this into the program.
I put in this
Close[i]>
and then when try to add the open it keeps saying
Error: Open[i] can't be added."

Eg I want to put in there

close > open then the indicator would be at 100
close < open then the indicator would be at 0

disregard use of then. I am not a programmer or good at maths functions/ formulas just trying to explain what I want the indicator to do.

Its basically a line indicator (like an RSI) that works with the current candle and does as stated above.

It seems like it should be simple but running into a few hurdles. Am very keen to purchase the visual ea builder which I have had success with however I need to be able to create this simple indicator first as it is a key part of the system.

Any help appreciated.


Top
 Profile  
 
 Post subject: Re: Simple indicator in Technical indicator builder
PostPosted: Thu Apr 05, 2012 10:15 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
When I say ifs, I mean if condition then do this
You identify a condition because it uses a comparison (like >,<,==). So you want to use an if that is not supported.
The initial design of the indicator builder was to show continuous signals give by one equation, then you import the signal into the strategy builder to do the comparison and create a signal to trade.
Since many users just want to see the signal visually without trading on it, we will change the indicator builder design before year end


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