Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by VoroneTZ. 04/16/24 11:18
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
7 registered members (11honza11, VoroneTZ, ricky_k, Nymphodora, rki, 7th_zorro, Volkovstudio), 426 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Feature Request: TradeTime for Closed #446574
10/21/14 15:00
10/21/14 15:00
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
TradeTime
The number of bars since the trade was entered (for pending trades) or opened (for open trades).

Feature request. Extend this to be
TradeTime
The number of bars since the trade was entered (for pending trades) or opened (for open trades) or the trade duration (for closed trades).

I just noticed that TradeTime is not frozen when the trade is closed. This means it equals [Last Bar in simulation] - [Trade Open Bar] for Closed trades, a decidedly useless value once you're in the EXITRUN looping over your trades laugh
Instead I would like to get at the number of bars from Open to Close for each trade.

Last edited by GPEngine; 10/21/14 15:01.
Re: Feature Request: TradeTime for Closed [Re: GPEngine] #446596
10/22/14 13:40
10/22/14 13:40
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
I think I see, TradeTime is useful for supplying an offset to date related functions
hour(TradeTime)
perhaps that is it's main purpose? If so, it would have been more obvious if it had the word offset in its name.

Re: Feature Request: TradeTime for Closed [Re: GPEngine] #446600
10/22/14 16:58
10/22/14 16:58
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
You can see the definitions in variables.h - TradeTime is not a real variable, but a macro. The trade duration for closed trades would be (TradeBarClose-TradeBarOpen).


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1