| -
Compiler error - does not recognise OrderCreateParams
Hi
I've just started using Strategy trader. But it is clear to me something is not right here. The following error messages occur when I copied the Medium difficult EA example from the help file in this forum. When I compile errors come up which indicates it does not recognise the ordercreate command. At first I thought it must have been an error in the example. But the same thing happens when I try to compile one of the sample EA (MACDcross) that came with the software. Any ideas?
Here is the list of errors:
The type or namespace name 'OrderCreateParams' could not be found (are you missing a using directive or an assembly reference?) "test2" [Strategy] Ln 91
The best overloaded method match for 'Broker.StrategyLanguage.IOrdersFactory.CreateLimit(Broker.StrategyLanguage.OrdersCreateParams)' has some invalid arguments "test2" [Strategy] Ln 91
Argument '1': cannot convert from 'OrderCreateParams' to 'Broker.StrategyLanguage.OrdersCreateParams' "test2" [Strategy] Ln 91
The type or namespace name 'OrderCreateParams' could not be found (are you missing a using directive or an assembly reference?) "test2" [Strategy] Ln 95
The best overloaded method match for 'Broker.StrategyLanguage.IOrdersFactory.CreateStop(Broker.StrategyLanguage.OrdersCreateParams)' has some invalid arguments "test2" [Strategy] Ln 95
Argument '1': cannot convert from 'OrderCreateParams' to 'Broker.StrategyLanguage.OrdersCreateParams' "test2" [Strategy] Ln 95
The type or namespace name 'OrderCreateParams' could not be found (are you missing a using directive or an assembly reference?) "test2" [Strategy] Ln 99
The best overloaded method match for 'Broker.StrategyLanguage.IOrdersFactory.CreateLimit(Broker.StrategyLanguage.OrdersCreateParams)' has some invalid arguments "test2" [Strategy] Ln 99
Argument '1': cannot convert from 'OrderCreateParams' to 'Broker.StrategyLanguage.OrdersCreateParams' "test2" [Strategy] Ln 99
The type or namespace name 'OrderCreateParams' could not be found (are you missing a using directive or an assembly reference?) "test2" [Strategy] Ln 103
The best overloaded method match for 'Broker.StrategyLanguage.IOrdersFactory.CreateStop(Broker.StrategyLanguage.OrdersCreateParams)' has some invalid arguments "test2" [Strategy] Ln 103
Argument '1': cannot convert from 'OrderCreateParams' to 'Broker.StrategyLanguage.OrdersCreateParams' "test2" [Strategy] Ln 103
-
OK I know what's happened. There are some serious errors in the example in the new help file. I found this out by typing the command and looking at the drop down menu of usable syntax.
"OrderCreateParams" which is in the buy/sell code should be "OrdersCreateParams". This is why the instruction was not recognised. There are also a number of other significant errors I found, like "IOrdersFactory" is used in the buy signal. This should only be used in the parameter setup. "OrdersFactory" is the command to place an order.
-
Hi rickster,
Thanks for the information. We'll be releasing a new help file soon.
Best Regards,
Carl
-
I thought I had a new help file (just installed), but still the same compiler errors...All over the places.
-
Hi laszlonadai,
Thanks for posting.
Is possible to post your code? we'll try to replicate the compiler errors that you get.
Best Regards,
Carl
|
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.