Gamestudio Links
Zorro Links
Newest Posts
Converting History Data
by Erneto. 05/25/20 23:54
MT4/5 Bridge - Zero MQ
by Grat. 05/25/20 18:57
bug in parseData?
by Grat. 05/25/20 18:49
Train not save
by Grat. 05/25/20 18:36
CCT PhysX 2.0
by CodeMaster. 05/25/20 17:20
Trend Method on Financial Hackers
by jcl. 05/25/20 12:02
Negative prices?
by danatrader. 05/25/20 06:34
Is Zorro still viable?
by Grat. 05/25/20 05:12
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
2 registered members (AndrewAMD, Erneto), 523 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mike333, trader310, Onn, Dahn, happysun
18453 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
priceClose() in TMF #478451
10/23/19 19:57
10/23/19 19:57
Joined: Aug 2019
Posts: 20
F
felixfx Offline OP
Newbie
felixfx  Offline OP
Newbie
F

Joined: Aug 2019
Posts: 20
In the TMF, priceClose() references the last tick of the bar rather than the actual Close of the bar.
Is there a way to access the last bar close and last bar open in the TMF?

also, if I was to use within a TMF if(crossOver(priceClose(), VARIABLE)) { do this action; } I get an error: Pointer Expected.
Is there a proper way of doing this?

Re: priceClose() in TMF [Re: felixfx] #478453
10/23/19 20:11
10/23/19 20:11
Joined: Feb 2017
Posts: 972
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 972
Chicago
Save the
Originally Posted by felixfx
In the TMF, priceClose() references the last tick of the bar rather than the actual Close of the bar.
Is there a way to access the last bar close and last bar open in the TMF?
Save each value to an AssetVar.

Originally Posted by felixfx
also, if I was to use within a TMF if(crossOver(priceClose(), VARIABLE)) { do this action; } I get an error: Pointer Expected.
Is there a proper way of doing this?
You supplied a var when you need to supply a vars.

Re: priceClose() in TMF [Re: AndrewAMD] #478464
10/24/19 17:22
10/24/19 17:22
Joined: Aug 2019
Posts: 20
F
felixfx Offline OP
Newbie
felixfx  Offline OP
Newbie
F

Joined: Aug 2019
Posts: 20
Originally Posted by AndrewAMD
Save each value to an AssetVar.


so in other words
#define CLOSE0 close[0]
#define CLOSE1 close[1]
// etc

function run()
{ vars close = series(priceClose()); }

since I have yet to figure out how to supply a whole series to a TMF, is that even possible?

Originally Posted by AndrewAMD
You supplied a var when you need to supply a vars.

This is related to the above. If I passed individual indexes within a series of priceClose() to the TMF, I would use
if(crossOver(CLOSE0, VARIABLE) { do this action; }

if this case, I would want to use the Tick priceClose() within the TMF over a bar priceClose() from run(), so what would be the proper syntax to do this within the TMF?

Re: priceClose() in TMF [Re: felixfx] #478465
10/24/19 17:42
10/24/19 17:42
Joined: Feb 2017
Posts: 972
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 972
Chicago
Originally Posted by felixfx
since I have yet to figure out how to supply a whole series to a TMF, is that even possible?

I explained that here:
https://opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=478454#Post478454


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