Topics
Replies
rupweb
14 Sep 2012, 18:06
Thanks Qingyang2005, yes OnPositionOpened and then
Trade.ModifyPosition(openedPosition, GetAbsoluteStopLoss(openedPosition, StopLoss), GetAbsoluteTakeProfit(openedPosition, TakeProfit));
But what I want to see is the return from the Trade method, it goes to the server then not sure how to capture the response, think it's void.
Also would like step-by-step code execution of the .cs robot, is that possible in VS?
@rupweb
rupweb
14 Sep 2012, 16:36
Hi Qingyang2005... hehe the fact you point out the editor is not up to VS standards does make me laugh... I have also been cutting and pasting and so on, working manually. But I guess that for me the editor has most of the functionality needed. What I would like is an OnPositionModified method so that once a Trade is placed then just as soon as my stops and takeprofits are bolted to the Trade I can easily see the result, which at the moment I find I cannot, but I know it IS working.
cheers, Rupweb.
There Is No Signal
@rupweb
rupweb
11 Oct 2012, 16:01
would need to be able to access the tick database... then run it through the test framework with different parameters.
Thanks for the suggestion about doing this. Could run a backtester and simply store all the ticks in a flat file and use that as the DB in VS...
@rupweb