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 12:23 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: how to i build a indicator with flexible Parameter
PostPosted: Thu Sep 08, 2011 5:28 am 
Offline

Joined: Fri Sep 02, 2011 2:24 pm
Posts: 4
hi,
i would like to buld a indicator to create buying price,
my current indicator calculation is Hight[i] +0.0002(spreat)+0.0001(break through)
how can i program the signal= Hight[i] + parameter + 0.0001 ?
thank for reply


Top
 Profile  
 
 Post subject: Re: how to i build a indicator with flexible Parameter
PostPosted: Thu Sep 08, 2011 8:09 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
If you want to get the spread, you could add:
(Ask - Bid)*0.0002
Mind you, it will work in forward testing but may fail or won't give you all signals in backtesting. Why? The historical data for backtesting is made of open,high,low and close; and not every tick. So in backtesting it will try to come up with a spread based on Ask (open) - Bid (open).. or close, high, low
Lots of indicators on internet use Ask and Bid, but only a few people understand the implications in backtesting


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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