Page 1 of 1

Need a quote to modify strategy

PostPosted: Sat Oct 22, 2016 2:23 am
by hiepbg
Hello,

I need to ask about the number of closed postition in trading history. Can you count it and use this number as a parameter to allow trade ?
I need to add this feature to a existing strategy.

Thanks,

Re: Need a quote to modify strategy

PostPosted: Mon Oct 24, 2016 3:13 am
by Apprentice
Sure, we can access close trade table,
use this as input.

Prevent new position if max number is reached,
or add time countdown (minimum time between two positions)

Re: Need a quote to modify strategy

PostPosted: Mon Oct 24, 2016 7:34 am
by Georgiy
Hello hiepbg,

Please send me the detailed description of you request (please attach the strategy). So we would be able to estimate it and name the quote.
Thank you.

Re: Need a quote to modify strategy

PostPosted: Mon Oct 24, 2016 9:51 am
by hiepbg
It's an old strategy.
http://fxcodebase.com/code/viewtopic.php?f=31&t=12455


I want to count the closed orders. I want to make a limit of the number of positions, that have been closed before. The strategy can not make the new postitions because the limit.
Example, i use this strategy to buy, with "close in oppsite" is yes, the limit is 2 and my strategy can not make a new buy order at the defined price, because it has been closed 2 order before.
These 2 closed orders was created from when i run strategy. After close 2 orders, there is no more new buy order. The strategy will stop trading immediately.

I do not need the minimum time, just simple like what i decribe above. Simple is da best :mrgreen:

You can see this image:

Image

Re: Need a quote to modify strategy

PostPosted: Mon Oct 24, 2016 10:00 am
by hiepbg
Apprentice wrote:Sure, we can access close trade table,
use this as input.

Prevent new position if max number is reached,
or add time countdown (minimum time between two positions)


Great, it's what i want. I don't need new time countdown, but this simple thing make strategy perfectly. :mrgreen:

Re: Need a quote to modify strategy

PostPosted: Wed Nov 02, 2016 3:34 am
by Georgiy
Hi hiepbg,

I have answered you via PM.