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 Mon May 13, 2024 12:34 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Trouble with pending orders
PostPosted: Mon Aug 20, 2012 10:11 pm 
Offline

Joined: Wed Jul 18, 2012 11:06 pm
Posts: 78
Hey there, I can't seem to get pending orders to work for me.. I have tried to write a really simple EA to dumb it down as much as possible to locate a problem but i still cant get it to work.

If 50 SMA > 100 SMA
PENDING BUY @ + 20 pips
SL 20, TP 20

What on earth am I doing wrong??

nolube


Attachments:
pending test.mol [5.72 KiB]
Downloaded 444 times
Top
 Profile  
 
 Post subject: Re: Trouble with pending orders
PostPosted: Wed Aug 22, 2012 8:33 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Which error do you get? First Try it without using stops


Top
 Profile  
 
 Post subject: Re: Trouble with pending orders
PostPosted: Wed Aug 22, 2012 10:31 am 
Offline

Joined: Wed Jul 18, 2012 11:06 pm
Posts: 78
No error message, it just doesn't place orders. I tried removing the SL and same thing.. Could you please check the .mol file I attached and see if I have done something wrong.

nolube


Top
 Profile  
 
 Post subject: Re: Trouble with pending orders
PostPosted: Thu Aug 23, 2012 9:32 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
You defined a lot size of 0 - just change it.
If you look at the logs in the expert tab and do some backtesting you may spot the errors before trading


Top
 Profile  
 
 Post subject: Re: Trouble with pending orders
PostPosted: Mon Sep 03, 2012 6:02 am 
Offline

Joined: Wed Jul 18, 2012 11:06 pm
Posts: 78
Thanks for the tips! I thought you could just set the lot size in the 'expert properties' in mt4 so that's why I didn't have a lot size there.. learning learning.. :)


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