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 Wed May 29, 2024 12:04 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: spread histogram how to ?
PostPosted: Wed Feb 09, 2011 9:49 am 
Offline

Joined: Tue Feb 08, 2011 4:51 am
Posts: 3
:mrgreen:

hello frds

i am tryng to build a smal indi



its a spread beetween an average of x in the past and an open x time

so i do average of a+b/2 all in a+4 mode so 4 bar before

then put - open +2

dont get anything but code is ok ?

other question

dont know how use => = < and &&&

each time i put them says wrong code ???


Top
 Profile  
 
 Post subject: Re: spread histogram how to ?
PostPosted: Wed Feb 09, 2011 10:09 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
If you don't see your signal, probably it is a range issue. mt auto arrange the chart to show the candles nicely. This means that if price is 1.5 but your signal is for example 0.1 (it's a spread so it's small) so it won't be in the chart. It is too small compared to the price. Try plotting the signal in a separate chart (Change it in START icon)
The indicator builder Version 3.15 does not support => = < and &&. It supports mathematical expressions


Top
 Profile  
 
 Post subject: Re: spread histogram how to ?
PostPosted: Wed Feb 09, 2011 10:13 am 
Offline

Joined: Tue Feb 08, 2011 4:51 am
Posts: 3
thanks for fast reply

other question about how to have blue bar if spread positive and red bar if negative ?????


thanks


Top
 Profile  
 
 Post subject: Re: spread histogram how to ? more questions
PostPosted: Wed Feb 09, 2011 10:32 am 
Offline

Joined: Tue Feb 08, 2011 4:51 am
Posts: 3
in fact my idea is to calculate the spread like that


blue spread when spread is positive means the open happen over that average

and

red when spread is negative with open happen under under that average


Top
 Profile  
 
 Post subject: Re: spread histogram how to ?
PostPosted: Wed Feb 09, 2011 12:07 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Since spreads are too small use a separate chart and use 2 TI icons as explained here viewtopic.php?f=9&t=240&p=883&hilit=mathmin#p883


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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:  
Powered by Molanis © 2009