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 Fri May 03, 2024 12:57 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Order don't respect the conditions !
PostPosted: Mon Sep 02, 2013 5:22 am 
Offline

Joined: Mon Aug 05, 2013 11:11 am
Posts: 5
Please take a look at GOLD 15 Minutes and apply the EA attached ...
today at 11.14.00 (europe time), placed a buy order that don't respect the trading rules ... in particular the ichimoku tenkan sen is below the kiju-sen and should be over for the long entry!
tenkan-sen was 1393,665
kijun was 1393,82
why ??
thank you


Attachments:
ichi-LG-SH-nuvola-RSI.mol5 [21.43 KiB]
Downloaded 766 times
Top
 Profile  
 
 Post subject: Re: Order don't respect the conditions !
PostPosted: Tue Sep 03, 2013 8:26 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
If you are verifying your trades with the chart you need to change the ea to avoid using the crurrent bar or shift 0.
The charts plot the close price, the trade takes place at the open so you are comparing values at a different time. This is why you think the ea makes a wrong trade, The generated eas only trade when the trigger (TAs icons) is true.
I always create the eas using shift 1, after I verify the signals I change it to 0


Top
 Profile  
 
 Post subject: Re: Order don't respect the conditions !
PostPosted: Tue Sep 03, 2013 8:34 am 
Offline

Joined: Mon Aug 05, 2013 11:11 am
Posts: 5
at the closing bar the values are tenkan=1393,665 and kijun=1393,82 so tenkan<kijun , at the next open of the bar the tenkan is still < kijun.
So i don't understand why the trigger is true :?:


Top
 Profile  
 
 Post subject: Re: Order don't respect the conditions !
PostPosted: Wed Sep 04, 2013 7:55 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
How are you looking at the indicator value at the open?


Top
 Profile  
 
 Post subject: Re: Order don't respect the conditions !
PostPosted: Thu Sep 05, 2013 7:04 am 
Offline

Joined: Mon Aug 05, 2013 11:11 am
Posts: 5
i'm looking the value on the graph, at closing bar and at next opening bar


Top
 Profile  
 
 Post subject: Re: Order don't respect the conditions !
PostPosted: Thu Sep 05, 2013 1:25 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
That is not really reliable. You may get two ticks in a row. Your best test it to use shift 1 for the visual testing. Or maybe some code to print out the indicator value.


Top
 Profile  
 
 Post subject: Re: Order don't respect the conditions !
PostPosted: Thu Sep 05, 2013 6:18 pm 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
With that indicator there is no way to see the value at the open in a historical chart. In other indicators you can say calculate the value using the open price.


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