Optimizing JJO_ROC_CMO_Kalman etc
Author: urielt
Creation Date: 6/17/2009 6:44 AM
profile picture

urielt

#1
i like to know how i can can optimize the ROC indicator to minimize the number of trades on JJO_ROC_CMO_Kalman_V1, as well how i can replace the market orders with option trades.
profile picture

Cone

#2
You'll have to wait for version 5.4 for the Optimizer. Notwithstanding the unexpected, it's around the corner for WL Pro 5.4, and we'll get the word out shortly for Developer 5.4.

Trading is based on the "context" (primary) symbol. You'll need chart data for the option contract in order to synch it to the primary symbol for trading. If you don't have that data, the 3rd party tool that your using for order entry will have to massage the symbol when placing the order.
profile picture

urielt

#3
Hello Cone,

what you mean by the Optimizer ? it is away to modify the code...
profile picture

Eugene

#4
Here's a quick peek of the Optimizer tool in WL 5.4:
profile picture

Eugene

#5
Here's how you need to modify the strategy to optimize the ROC with parameter sliders:
CODE:
Please log in to see this code.

For now, just drag the parameter slider "ROC Period". When WLD 5.4 is out, there's a full-blown Optimizer like you see above.
profile picture

urielt

#6
Hello Cone,

i was hopping mybe you can help me to unserstand better how to use option contract trading in the above script
(replace market order with option trades) as well how to us it in wealthlab

Regards
profile picture

Eugene

#7
Generally, Wealth-Lab isn't an option trading platform. Assuming you have some option data in place, you may try to pass it to the SetContext() method as the QuickRef and WealthScript Guide (Programming Trading Strategies > Multi-Symbol Strategies) instructs to, creating a trade on the secondary series.
profile picture

urielt

#8
need same help please, i am trying modify the script "CMO Signals with Profit Target" that the CMO series will be calculated from the Kalman filtered closing price values (same as above script - JJO_ROC_CMO_Kalman_V1)(CMO(Kalman1,14)

this is the CMO Signal script:

CODE:
Please log in to see this code.

profile picture

Eugene

#9
QUOTE:
need same help please, i am trying modify the script "CMO Signals with Profit Target" that the CMO series will be calculated from the Kalman filtered closing price values (same as above script - JJO_ROC_CMO_Kalman_V1)(CMO(Kalman1,14)

As far as I understand, there should be no problem modifying it.

Hint: (see code in my message # 6/17/2009 8:27 AM)
CODE:
Please log in to see this code.

It must be a matter of simply replacing the ROC with CMO.
profile picture

urielt

#10
i am all confuse.. i am trying to modify the "CMO Signals with Profit Target" that CMO calculate from Kalman filtered closing price values .

QUOTE:
It must be a matter of simply replacing the ROC with CMO.


the is no ROC in script for "CMO Signals with Profit Target"

please advice
profile picture

Eugene

#11
The strategy above doesn't seem to need such modification as it already does what requested:
CODE:
Please log in to see this code.

Otherwise please be specific on what you're trying to do, as it's not clear.
profile picture

urielt

#12
Hello Eugene,

this is the strategy:

CODE:
Please log in to see this code.


i am trying to modify that CMO will calculate from Kalman filtered closing price values
same as above script "JJO_ROC_CMO_Kalman_V1" DataSeries CMOSer = CMO.Series( Kalman1, 14 );
profile picture

Eugene

#13
So, I don't see what's the problem to replace one CMO in the strategy you're modifying, with another one?

Define a Kalman series like exemplified in Standard Indicators > Kalman, pass it as a parameter to the CMO data series (e.g. "CMO.Series( Kalman1, 14 )"), and you're done. Like this:

CODE:
Please log in to see this code.


Please re-read the WealthScript Guide / QuickRef, as this is a very basic question.
profile picture

urielt

#14
thanks so much, i did try ....i do not have any clue in programing, you can please modify for me
profile picture

Eugene

#15
Simply replace this snippet in the code above:
CODE:
Please log in to see this code.
...with this one by copying and pasting:
CODE:
Please log in to see this code.
profile picture

urielt

#16
Thanks so much for your support
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).