[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] if () { } Statement and ibc.PlaceOrder



PureBytes Links

Trading Reference Links



Hi,

I am having a problem with ibc functions, if I use ibc.PlaceOrder within a couple of IF statements the order function dosent place orders from AA window. Though both IF conditions are True. In this use ibc.PlaceOrder is placing orders only if the symbol is displayed on the chart window, and not for any other symbols found in background of AA window.

If I use the same ibc.PlaceOrder outside of the IF statements then, ibc.PlaceOrder works to place orders for any symbol's buy signal found in AA alanysis.

Both IF conditions are true, then why is this happening? are there any limitations/specifications for using ibc function at specific places?

 

if  ( StaticVarGet("SystemInit") == True ) {

if ( Positions < StaticVarGet ("MaxPositions")  )  {

BuyOrderID = ibc.PlaceOrder(StaticVarGetText ("BuyOrderName " + Symbol), "Buy", 100, "MKT", StaticVarGet ("BuyPrice " + Symbol), 0, "Day", True);

}

}

 

Thanks...

 



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___