How to translate Pain in the Neck with Xdev?
Author: beris
Creation Date: 8/19/2008 8:06 AM
profile picture

beris

#1
Hi Eugene.

I haven't programmed ever. Because of that I still haven't started using WL5. Is there a way to transfer a code from WL4 to WL 5? For start, for example, how could I transfer the code below (from Pain in the Neck with Xdev)to WL5? Thank you.
CODE:
Please log in to see this code.
profile picture

Eugene

#2
Here it goes:
CODE:
Please log in to see this code.
profile picture

beris

#3
Thank you Eugene. It appears to be working. I appreciate it a lot. I'll test it now and compare the data (results) against the WL 4. Thanks again for your prompt assistance as always.
profile picture

beris

#4
Eugene, it appears to be working well, thank you once again for being so fast and helpful.

Results are a bit different with WL5 (comparing the same chart to WL4), but it's almost identical.

I believe that reason for slightly different results (including open positions, trades, alerts, etc) when backtesting and strategizing in WL5 (comparing to simulation in WL4) might have something to do with commission setup (or maybe it has something else to do with that you know of).

In any way, to correct that, could you let me know how to change the commission amount in WL5, like I was able to do with WL4? With WL4 I was free to change to the amount I wanted, and with WL5 the only option is a pre-set "Fidelity Gold" structure. Even when I change commission to a different amount and click "calculate" it still shows $8 commission in that window (it doesn't change it). tia
profile picture

Eugene

#5
Most likely, the difference is not about the different commission structure.

First and foremost, when the capital is "insufficient" the trades are picked truly randomly. Therefore, Priority must be assigned in WL5 (note: see QuickRef and WealthScript Guide regarding potential peeking with stop/limit orders).

Another possible cause for stop/limit orders is that the order is adjusted to the nearest tick.
profile picture

beris

#6
Thank you, I'll read that, and see if I can figure it out. Thanks again.
profile picture

Eugene

#7
Re: Commissions.

Yes, it will not change with 'Fidelity Gold' since it's a fixed plan $8 plan (see 'Commission Description').

As to their flexibility:
QUOTE:
In Versions 5.0 and 5.1, Commissions are somewhat limited in that users cannot select or store options. We foresee this deficiency being resolved in a future release.