Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by opm. 10/24/25 03:44
ZorroGPT
by TipmyPip. 10/23/25 21:05
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
stooq.pl quotes help
by gbe. 10/19/25 21:08
What are you working on?
by rayp. 10/15/25 20:44
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (vestria, Nymphodora), 4,230 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Blueguy, blobplayintennis, someone2, NotEBspark, vestria
19176 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,808
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,808
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