• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 9:52pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 9:52pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

MQL4 code help 12 replies

Which pair always returns to same price 11 replies

MQL4 Language Most Recent Version is it updated beyond the tutorial on the mql4 websi 6 replies

MT4 Indicators Usage Tutorial/MQL4 Reference Documents 36 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
Tags: MQL4: isTradeAllowed() always returns false
Cancel

MQL4: isTradeAllowed() always returns false

  • Post #1
  • Quote
  • First Post: Aug 22, 2012 7:24am Aug 22, 2012 7:24am
  •  Jasus
  • | Joined Jun 2010 | Status: Portuguese Escudo Trader | 303 Posts
I'm using a demo account on Alpari and I can do manual trades just fine, and I've also enabled the option that allow EAs to trade. So I don't understand why isTradeAllowed() always returns false?
  • Post #2
  • Quote
  • Aug 22, 2012 3:55pm Aug 22, 2012 3:55pm
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
The only reason TradeAllowed() returns false is you have not enabled trading for the EA on that chart. Check the EA properties and look for the smiley face on the upper right hand corner of the chart.
 
 
  • Post #3
  • Quote
  • Aug 22, 2012 11:26pm Aug 22, 2012 11:26pm
  •  pip_seeker
  • | Joined Dec 2007 | Status: IF YOU SEE SMOKE, RUN! | 1,206 Posts
Quoting CodeMeister
Disliked
The only reason TradeAllowed() returns false is you have not enabled trading for the EA on that chart. Check the EA properties and look for the smiley face on the upper right hand corner of the chart.
Ignored

I wonder if an expired demo account would do the same thing? (not that this is the problem though.)
 
 
  • Post #4
  • Quote
  • Aug 23, 2012 2:14am Aug 23, 2012 2:14am
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
You would not get any tick updates for an expired account.
 
 
  • Post #5
  • Quote
  • Last Post: Aug 23, 2012 8:06am Aug 23, 2012 8:06am
  •  Jasus
  • | Joined Jun 2010 | Status: Portuguese Escudo Trader | 303 Posts
It's fixed now, I had to remove and attach it again. Thanks
 
 
  • Platform Tech
  • /
  • MQL4: isTradeAllowed() always returns false
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023