Gamestudio Links
Zorro Links
Newest Posts
ZorroFix. ini /data and /log path
by jcl. 12/09/25 10:06
Zorro 2.70
by jcl. 12/09/25 10:03
Parameter selection
by jcl. 12/01/25 12:28
ZorroGPT
by TipmyPip. 11/29/25 09:38
webGL
by Ezzett. 11/27/25 23:22
Chart viewer
by clint000. 11/27/25 21:21
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 25,011 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
agasior, mosfet, MonsterX, KF_Investments, Luuk
19186 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Trade Entry Parameters #477956
08/19/19 12:53
08/19/19 12:53
Joined: Aug 2018
Posts: 101
O
OptimusPrime Offline OP
Member
OptimusPrime  Offline OP
Member
O

Joined: Aug 2018
Posts: 101
Good Morning Kind Sirs:

Am I correct that this line here is calling the TMF but also opening a trade at the default lots and specified limit price?

enterShort (MyTMF, 0, -5*PIP);

Sorry if it seems basic but I need the sanity check.

Thank you


Thanks so much,

OptimusPrime

Re: Trade Entry Parameters [Re: OptimusPrime] #477959
08/19/19 13:13
08/19/19 13:13
Joined: Feb 2017
Posts: 1,810
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,810
Chicago
Not correct. Look at the definitions of the functions:
https://zorro-project.com/manual/en/buylong.htm

You just required that your TMF have two arguments. It must be:

function MyTMF(var v0, var v1){ /* ... */ }

In your case, v0 will be 0, and v1 will be -5*PIP for that particular trade. I do not think that this is what you wanted.

You can still set parameters such as Lots and Stop prior to placing the trade, but not as function inputs.

Re: Trade Entry Parameters [Re: OptimusPrime] #477960
08/19/19 14:51
08/19/19 14:51
Joined: Aug 2018
Posts: 101
O
OptimusPrime Offline OP
Member
OptimusPrime  Offline OP
Member
O

Joined: Aug 2018
Posts: 101
Thanks Andrew. You are right, I was not intending to pass any argument to the TMF. Yes, I was wondering if I could specify trade entry parameters as well as make a call to my MyTMF in one single command.

Thanks, I will continue to set them separately.


Thanks so much,

OptimusPrime


Moderated by  Petra 

Gamestudio download | 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