Strategy Builder

Strategies are published here.

Moderator: admin

Re: Strategy Builder

Postby Apprentice » Tue Oct 31, 2017 3:48 am

I failed to reproduce.
I tested within Backtester and Simulator.

Can you send Crash Report along with the settings used to my email.
mario(.)jemic(@)gmail(.)com

U will find it in
..\Program Files (x86)\Candleworks\FXTS2\crash
Capture.PNG

Make sure to copy it before TS restart.

After restart, the folder will be deleted.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17357
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Strategy Builder

Postby guangho » Sun Nov 05, 2017 2:17 pm

Apprentice wrote:I failed to reproduce.
I tested within Backtester and Simulator.

Can you send Crash Report along with the settings used to my email.
mario(.)jemic(@)gmail(.)com

U will find it in
..\Program Files (x86)\Candleworks\FXTS2\crash
Capture.PNG

Make sure to copy it before TS restart.

After restart, the folder will be deleted.


Hi,Apprentice,
Can you look at this article?
viewtopic.php?f=28&t=65097

I know the reason for the "Marketscope Bug"...
example:
function ExtAsyncOperationFinished(cookie,success,message)
if cookie == 200 and not success then
terminal:alertMessage(instance.bid:instrument(),instance.bid[NOW], "Open order failed !" .. message, instance.bid[NOW]);
elseif cookie == 200 then
terminal:alertMessage(instance.bid:instrument(), instance.bid[NOW], "Open order true !" .. message,instance.bid[NOW]);
end
end

The "ExtAsyncOperationFinished(cookie,success,message)" return the "message" is an nil.
SO:
function ExtAsyncOperationFinished(cookie,success,message)
if cookie == 200 and not success then
terminal:alertMessage(instance.bid:instrument(),instance.bid[NOW], "Open order failed !" .. message, instance.bid[NOW]);----can run
elseif cookie == 200 then
terminal:alertMessage(instance.bid:instrument(), instance.bid[NOW], "Open order true !" .. message,instance.bid[NOW]);----Will not run
end
end

When:
function ExtAsyncOperationFinished(cookie,success,message)
if cookie == 200 and not success then
terminal:alertMessage(instance.bid:instrument(),instance.bid[NOW], "Open order failed !" .. message, instance.bid[NOW]);----can run
elseif cookie == 200 then
terminal:alertMessage(instance.bid:instrument(), instance.bid[NOW], "Open order true !",instance.bid[NOW]);----can run
end
end

How can i return the requestId?
guangho
 
Posts: 72
Joined: Sat Sep 29, 2012 12:16 pm

Previous

Return to Custom Strategies

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests