SEEKING HELP ON TMFs

Posted By: MINER

SEEKING HELP ON TMFs - 11/21/18 13:51

Hello everyone, i have the SMAs script as attached. My question is......... i would like to add TMF to the script, can you please help me on how to do this....can you suggest other issues in the script if there is any and their solutions. what are components of a complete trading script? Thank you in advance.

im new in zorro and your help will be greatly appreciated.

Attached picture Capture2.PNG
Posted By: MINER

Re: SEEKING HELP ON TMFs - 11/21/18 13:57

On the same script, please help me add a function that will trigger zorro to print the TradePriceClose/TradePriceOpen prices
Posted By: AndrewAMD

Re: SEEKING HELP ON TMFs - 11/21/18 15:24

A TMF is its own function. You write it separately, and then you assign the function to a trade upon entry.

There are many excellent examples in the manual:
http://zorro-project.com/manual/en/trade.htm

Looking at your example, you can put the for(open_trades) logic in a TMF and assign the TMF to enterLong(TMF_name) and enterShort(TMF_name).
Posted By: MINER

Re: SEEKING HELP ON TMFs - 11/22/18 06:24

Thank you AndrewAMD, i got the point.....working on improvement.
© 2024 lite-C Forums