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 3:37 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Close long/short
PostPosted: Mon Nov 28, 2011 11:32 pm 
Offline

Joined: Thu Nov 24, 2011 5:34 am
Posts: 29
I can't find anything in the manual about the close long/short icons. In my mol file, I thought I could get a long/short position to close if the price was below/above the 50 sma. How am I supposed to connect the close short/long icon as I have errors in my ea?


Attachments:
5 and 10sma trading between 9 and 4, 100TP and 50SL using shift method 2 with close long short if above below 50sma .mol [14.33 KiB]
Downloaded 714 times
Top
 Profile  
 
 Post subject: Re: Close long/short
PostPosted: Tue Nov 29, 2011 9:56 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
First of all, those long names for eas may create issues. It's better to keep it simple.
The CL and CS icons receive connections from TA, or AND, or OR; and connect to END.

When you click on validate, big Xs are shown where errors are found. If you put the mouse coursor on top of the X it will tell you the error. In you expert advisor you did not define the settings for CL / CS - you need to tell the icon what pair should be used - just leave it in current symbol

Also you are posting in the MT5 forum, you should review the set up and report in the MT4 forum if you have any issues


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