Topics
Replies

Garcho
02 Sep 2013, 23:18

The link to the example is broken

Hello, 

Is there a way to modify the target price in a pending order. The link to the workaround is broken. 

 

Best regards, 


@Garcho

Garcho
08 Aug 2013, 18:29

It worked, thanks for your help


@Garcho

Garcho
07 Aug 2013, 00:08

Hello, 

I was able to convert the indicator but some how I am not able to use it in backtesting. When I try to print the indicator in the backtesting log it says NaN, if I use the indicator on a demo account it works fine. For example, the following code works fine on a demo account but does not prints values of the indicator in the backtesting log, how can I make the indicator usable for backtesting?

//#reference: C:\Users\Luis Garcia\Documents\cAlgo\Sources\Indicators\_Fisher Automatico.algo

using System;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Requests;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC)]
    public class _Ensayos : Robot
    {
    
    private ConvertedIndicator Fisher10;
  
        protected override void OnStart()
        {
              Fisher10 = Indicators.GetIndicator<ConvertedIndicator>(10,1000);
         }

        protected override void OnBar()
        {

            if (Fisher10.ExtBuffer1_AlgoOutputDataSeries.LastValue > 0)
            {
            Trade.CreateBuyMarketOrder(Symbol,10000);
            }
            else
            {
            Trade.CreateSellMarketOrder(Symbol,10000);
            }
        }

n the code): 


@Garcho

Garcho
02 Aug 2013, 23:59

Thanks!! I will try it and let you know... bests


@Garcho

Garcho
25 Jul 2013, 23:56

Found the problem...

 


@Garcho