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 10, 2024 11:20 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Closing the Order
PostPosted: Tue Mar 20, 2012 5:29 pm 
Offline

Joined: Tue Mar 20, 2012 5:20 pm
Posts: 1
I have setup the conditions to open the order which end with BUY and then STOP.
However, I don't want to close the order with a S/L but rather close the order when certain conditions are met. I can't seem to add Condition Blocks between BUY and END because it tells me that the BUY Block must be connected straight to END.

I hope this is not too confusing

Graeme


Top
 Profile  
 
 Post subject: Re: Closing the Order
PostPosted: Thu Mar 22, 2012 4:32 pm 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
Try using CL and CS. Just make sure the trading conditions do not overlap (i.e. buy if 1<2 and cl if 1.5<2 both are true at somepoint)


Top
 Profile  
 
 Post subject: Adding Exit Logic to a CL Block
PostPosted: Sun Apr 01, 2012 2:49 am 
Offline

Joined: Wed Mar 14, 2012 12:31 am
Posts: 118
admin wrote:
Try using CL and CS. Just make sure the trading conditions do not overlap (i.e. buy if 1<2 and cl if 1.5<2 both are true at somepoint)



Hello Admin,

If it is OK with you and the OP, I'd like to piggyback my question directly off the OP's question, because they are exactly alike. So, both the OP and myself can learn something about how Molanis works, and you won't have to reply to two threads.

Picking up right where you just left off with the OP, I'd like to show you this diagram and then ask a question:

Image

Buy Side Trade Logic

Entry Logic:
Start >>> (2) TA+ >>> AND >>> Buy >>> Stop

Exit Logic:
Start >>> (2) TA+, (1) MQL >>> AND >>> (1) CL >>> Stop

Note: Given the way my iCustom works, there won't be any circular logic conditions causing the Entry Logic to return True, while the Exit Logic returns True.

Does the diagram appear to be a sound method for using CL to exit a position after it has been executed?

Thank you!
cfx


Top
 Profile  
 
 Post subject: Re: Closing the Order
PostPosted: Sun Apr 01, 2012 11:17 am 
Offline
Site Admin

Joined: Fri Oct 16, 2009 3:40 pm
Posts: 451
Sure. As long the logic doesn't overlap (meaning you don't want to open and close a transaction at the same time)


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