Information

Username: deansi
Member since: 30 Oct 2014
Last login: 30 Oct 2014
Status: Active

Activity

Where Created Comments
Algorithms 0 8
Forum Topics 5 31
Jobs 0 0

About

Programming ctrader, jforex, mt4

Last Algorithm Comments

DE
deansi · 8 years ago

Excellent work,.vey handy add on to other indicators.

to attach it to another indicator you just have to set the "Source" of this to the indicator output you want it to be attached to.

DE
deansi · 9 years ago

if youre trying to recompile it,

you will need to install microsoft visual studio, its free though. It has the lumenworks stuff installed inside by default.

DE
deansi · 9 years ago

I just checked into it further, the .csv file that comes form dailyrx only has the data till monday in it, (normally the whole week?)

They have a .xls format format available tho, not sure if that is a replacement for the .csv file? so the code may need some updating.

DE
deansi · 9 years ago

This indicator has been working fine until a couple of days ago,

now still shows past news till 2nd March 2015, after that no vertical lines showing new events since monday, and no list which was normally in the top left corner, I have the filtering switched off also just to show all calendar events, but still nothing, attached screenshot, hope its viewable:

http://icmarkets.ctrader.com/c/Zbfwn

DE
deansi · 9 years ago

Just to add to my post above, the code below will tell you if youre currently backtesting:

            if (IsBacktesting == true)

Also just a note that the MarketDepthEntry.Volume i mention in the previous post only works in live mode I believe since the server doesnt store this data at this point.

Enjoy

DE
deansi · 9 years ago

Joe,

Great work, I can answer a couple of your questions you had in the code comments.

The reason the volumes are always the same is the VolumeMin and VolumeMax method youre using is actually getting the min/max volume you are able to open a position in dollars etc.

You may want to try something like MarketDepth and MarketDepthEntry.Volume  

and AskEntries and BidEntries,these will give you the market pending volume available, and seems to be updated on every tick.

Ive looked into the other question about timeframe in cbots tab defaulting before, it seemed there is no way to set the option in a cbot, but you can use this code below instead so the cbots tab setting has no effect and you will get ticks output regardless:           

            // var barTime = MarketSeries.OpenTime.LastValue; //this was getting the bar start time
            var barTime = Server.Time ;
 //this gets the current server time, works live and backtesting

 

DE
deansi · 9 years ago

well done, nice indicator.

DE
deansi · 9 years ago

It works ok for me