MarketTurbulence.com update

11 05 2008

Things are moving along for my site. Sharing code blocks in Blocks 3.0 is not possible at the moment and that would have to be the biggest impediment to my site right now. I could translate things to the RealCode language but this would make the calculations prohibitively slow (RealCode doesn’t seem to handle loops very well). Instead of just setting something up so interested people can download my work, I’m going to have to write up a manual on creating the code blocks and layouts so people can download it. Inside the manual you will have everything you need to get TD Sequential and many of the other indicators working for you. I am also putting together some tutorial videos.  The extra work will be more that worth the time as many of these indicators are only available to Bloomberg terminal users and that costs over $2,000 a month.

I also am having to learn all of the ins and outs of Joomla, the content management system that I’m using to run marketturbulence.com. The e-commerce has been the steepest learning curve.


Actions

Information

5 responses to “MarketTurbulence.com update”

12 05 2008
Ken 'Kuf' Gilb (11:41:58) :

Actually, I think you’re just mistaken on how Real Code is implemented. It’s doing the loop for you so you no longer need to. If you need to do some custom looping it’s also easy to do. RealCode should be no slower than code blocks.

Let me know if you need some help translating some existing code.

12 05 2008
Ken 'Kuf' Gilb (11:42:57) :

Also if you save the chart with your RealCode indicator, you can “share” that with your readers by making the file available to download from your blog, or sharing it with the built in Share tool and password protecting it.

12 05 2008
Paul Stiles (11:47:47) :

Hmm…that is strange because I did some translating and I found RealCode to be painfully slow with loops. Perhaps I was just doing something wrong. I’ll send you a sample and you can tell me what you think.

Paul

12 05 2008
Paul Stiles (12:03:26) :

Kuf,

Regarding your first comment. I’m not using the “built-in” loop of RealCode. I need the indexing so I can run through every bar and record if an event has happened. For example,

For i = 1 to inputcount-1
If “event is true”
x = x + 1
array(i) = x
Else
array(i) = 0
end if
next

So now I have an array with mostly zeros in it, separated by a data point that corresponds to the barcount when the event happened. I then take that array and get rid of the zeros.

For j=1 to inputcount-1
If array(j) < > 0
n= n + 1
arrray2(n) = j
End if
Next

I went through your quick RealCode manual and couldn’t figure it out. Can your translate the above code?

12 05 2008
Ken 'Kuf' Gilb (12:34:49) :

Take a look at the RealCode I posted under your Zig Zag entry (or open my shared chart named Zig Zag with RealCode).

It produces ALMOST the exact same line as your code above.

RealCode indicators always loop from the first index in the Price History array to the last. It also gives you two properties you can check: isFirstBar (index = 0) and isLastBar (index = PriceHistory.Count -1). Using an undocumented method: addToOutput, you can create your own lines of any size. If you like I can write up a full post on worden.com about the zig zag indicator and go line by line over the code.

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>