Need a quote to modify strategy

If you need your own private indicator, signal or strategy, or any kind of development using various trading APIs - please visit this forum.

Moderator: admin

Need a quote to modify strategy

Postby hiepbg » Sat Oct 22, 2016 2:23 am

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,
hiepbg
 
Posts: 15
Joined: Fri Aug 05, 2016 4:40 am

Re: Need a quote to modify strategy

Postby Apprentice » Mon Oct 24, 2016 3:13 am

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)
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Need a quote to modify strategy

Postby Georgiy » Mon Oct 24, 2016 7:34 am

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.
Georgiy
FXCodeBase: Initiate
 
Posts: 150
Joined: Tue Jul 29, 2014 4:49 am

Re: Need a quote to modify strategy

Postby hiepbg » Mon Oct 24, 2016 9:51 am

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
Last edited by hiepbg on Mon Oct 24, 2016 2:33 pm, edited 1 time in total.
hiepbg
 
Posts: 15
Joined: Fri Aug 05, 2016 4:40 am

Re: Need a quote to modify strategy

Postby hiepbg » Mon Oct 24, 2016 10:00 am

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:
hiepbg
 
Posts: 15
Joined: Fri Aug 05, 2016 4:40 am

Re: Need a quote to modify strategy

Postby Georgiy » Wed Nov 02, 2016 3:34 am

Hi hiepbg,

I have answered you via PM.
Georgiy
FXCodeBase: Initiate
 
Posts: 150
Joined: Tue Jul 29, 2014 4:49 am


Return to Premium Development Services

Who is online

Users browsing this forum: No registered users and 8 guests