FXCM Forex Trading

Suggestion for MarketScope

All posts which do not fit into any other sections of the forum.

Moderator: admin

Suggestion for MarketScope

Postby robocod » Fri Jun 08, 2012 5:43 pm

[[Hi, not sure what the best forum for this was. Please feel free to move it to a better place.]]

It would be useful to have an option to allow entry of dates and times, e.g. indicator.parameters.addDate(...), or possibly it is a flag that is applied to a string, e.g. indicator.parameters:setFlag("startDate", core.FLAG_DATE_TIME) or similar.

I'm currently using a string parameter and then some simple pattern matching. Like this...

Code: Select all
    if #instance.parameters.date > 0 then
        local _, _, yyyy, mm, dd = string.find(instance.parameters.date, "(%d+)/(%d+)/(%d+)");
        refDate = core.date(yyyy, mm, dd);
    else
        refDate = 0;
    end


Which works fine. I use YYYY/MM/DD format here as it simple. Having to support localized date / time formats gets tricky, so having it built into the SDK would be really useful.

Many thanks.
User avatar
robocod
FXCodeBase: Initiate
 
Posts: 120
Joined: Thu May 10, 2012 4:25 pm

Re: Suggestion for MarketScope

Postby sunshine » Mon Jun 11, 2012 11:11 pm

Thank you for your suggestion. I've added your suggestion to our "Wishlist".
Learning how to read indicators is more of an art than a science.
sunshine
FXCodeBase: Aspirant (Junior)
 
Posts: 727
Joined: Fri Oct 15, 2010 3:42 am

Re: Suggestion for MarketScope

Postby robocod » Wed Jun 20, 2012 1:56 pm

Additionally, ideally the date/time should be aligned with the the date/time that MarketScope uses, i.e. server time, local time, exchange time, etc. Either using the same settings as MarketScope, or by additional flag which can be specified as another parameter.
User avatar
robocod
FXCodeBase: Initiate
 
Posts: 120
Joined: Thu May 10, 2012 4:25 pm


Return to General Discussions

Who is online

Users browsing this forum: creebroth, gauslyseali, joychhdafacaih, Proowdenerile, utibiaDiusy, Worpgrosy and 4 guests