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 Thu May 09, 2024 5:59 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Tue Jul 03, 2012 2:19 pm 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
Hello! How do I get my EA to work after the price is above the three MAs and after the line LightSeaGreen Stochastic has crossed the red line up to make a purchase order and vice versa for sale?

I look back!

See you soon!


Attachments:
crossing MAs and stocastic.jpg
crossing MAs and stocastic.jpg [ 440.52 KiB | Viewed 8002 times ]
Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Tue Jul 03, 2012 4:28 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Without seeing your mol or your indi's, I'm guessing this should be fairly straightforward. Do something like this:


Close > MA1 Mode 0 AND Close > MA2 Mode 0 AND Close > MA3 Mode 0 AND Stoch Mode 0 > Stoch Mode 1

so BUY


Close < MA1 Mode 0 AND Close < MA2 Mode 0 AND Close < MA3 Mode 0 AND Stoch Mode 0 < Stoch Mode 1

so SELL

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Thu Jul 05, 2012 4:40 pm 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
Thanks for the response RJO. Extratégia could do this alone, only by reasoning, since the logic is a matter of knowing the tools and thinking is not it? This worked out my strategy, I auditioned for backtesting and I'm happy! He initially seemed to have a good result!

If the team molanis allow me, I'll be posting my result! It's my first EA made ​​and after so many unsuccessful negotiations!

If someone has an idea to improve it further, I will be analyzing the ideas!

Good luck to all! The secret is never give up!


Attachments:
TCFerreira Trader FX.gif
TCFerreira Trader FX.gif [ 7.99 KiB | Viewed 8011 times ]
Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Thu Jul 05, 2012 6:02 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Hey that's great :!: The rule as I know it is: posting mol file is ok, but posting EA mq4 file is not. If you post your mol, I would definitely have a look. Thanks, tcanuto.

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Thu Jul 05, 2012 7:44 pm 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
I was trying to post the report of my trades in html format but it was not possible because the forum blocked!


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Thu Jul 05, 2012 10:35 pm 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
I noticed that some businesses could not be opened! What are these errors? I believe I have done the program correctly!


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Fri Jul 06, 2012 9:58 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
I fear something was lost in translation. Businesses, meaning positions? Are you getting error: maximum number of positions have been reached? Make sure Completed Bars=True in your START icon.

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Mon Jul 09, 2012 7:26 pm 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
Yes .. positions! Sorry for my English! You reminded me of another alternative for testing! In fact already in Bars true. I tried to negotiate the intersection of K and D on the same sailing was not possible do not know why. You could tell me why?

See you soon!


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Tue Jul 10, 2012 12:18 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Go to your C:/Program Files/Molanis/Strategy_Builder or C:/Molanis/Strategy_Builder and upload "your_ea_name.mol" file and attach to your next post.

If you use any custom indicators, attach them as well. However I suspect you are using Molanis' standard MA and Stoch--if so, not necessary to attach.

I will have a look at your trade logic. Indeed, do not give up.

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Tue Jul 10, 2012 8:16 am 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
RJO Thanks! I will be sending a part of him that is not working properly. I can not operate when the intersection of line D by K occurs in the same candle. Is it possible to do this?

Already thank you!

Note: The EA that passed this working properly, but it works only if the candle is above the previous and current across the candle! What I need is to make the crossing in the same K and D candle!


Attachments:
Cruzamento K e D do Estocastico.mol [11.65 KiB]
Downloaded 611 times


Last edited by tcanuto on Tue Jul 10, 2012 9:42 am, edited 1 time in total.
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2, 3  Next

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