Gamestudio Links
Zorro Links
Newest Posts
New Zorro version 2.20
by AndrewAMD. 11/15/19 03:34
What are you working on?
by jumpman. 11/14/19 16:17
A9
by preacherX. 11/14/19 15:28
Idx calculated every tick
by jcl. 11/14/19 15:25
IG plugin initial release
by Dalla. 11/13/19 19:07
Login 0 IG ..
by Dalla. 11/13/19 19:03
Moving Average crossover
by gra9. 11/13/19 10:43
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
6 registered members (Iglarion, kvm, AndrewAMD, Dooley, 3run, 1 invisible), 675 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LaszloK, gra9, Dev_ill, Ryu, andrews825
18329 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: 17
F
felixfx Offline OP
Newbie
felixfx  Offline OP
Newbie
F

Joined: Aug 2019
Posts: 17
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: 789
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 789
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: 17
F
felixfx Offline OP
Newbie
felixfx  Offline OP
Newbie
F

Joined: Aug 2019
Posts: 17
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: 789
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 789
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


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