Contents tagged with non standard time frame

  • jForex non standard time frame ema value

    Hello everybody,

    Few days ago I had an order for automating forex strategy for 3 minutes time frame in jForex platform.

    I faced issue that by default jForex doesn't work with 3 minutes. In order to do this, the following parts were needed for addition:


    public void onStart(IContext context) throws JFException {

    period3Min = Period.createCustomPeriod(Unit.Minute, 3);

    edDescriptor myFeed = new TimePeriodAggregationFeedDescriptor(Instrument.EURUSD, period3Min, OfferSide.ASK);

    ontext.subscribeToFeed(myFeed, new IFeedListener() {@Override

    pan style="color: #008800; font-weight: bold;">public void onFeedData(IFeedDescriptor feedDescriptor, ITimedData feedData) {

    try {

    nsole. … more