Replies

Capilta
01 Apr 2020, 08:29

RE:

Capilta said:

Dear,

I am new coder in cAlgo, I am getting a problem. I can't pass var veriable type into function parameter. 

I below code you will see i can't send 'pendingOrder' to another function as parameter.  current code give this error "Error CS0825: The contextual keyword 'var' may only appear within a local variable declaration"

In below code how can i fix this problem, Please help anyone help me ....

 

      foreach (var pendingOrder in PendingOrders)
       {
             if(pendingOrder.Id>0)
             {
                if (doMagic(pendingOrder) && pendingOrder.SymbolName == Symbol.Name)
                {
                    
                }
             }
       }

        bool doMagic(var order2)
        {
           if(UseNoMagicNumber) return(true);
           if(order2.Label == Magic) return(true);
           return(false);
        }
        

 

 

 

Is anyone help me 

 

 


@Capilta

Capilta
25 May 2016, 18:35 ( Updated at: 21 Dec 2023, 09:20 )

RE: RE:

moneybiz said:

Capilta said:

Please help me.

 

Resize to the right. You must have long name for the property. Just expand it more, you'll see it.

 

 

Thanks it is working. Solve 


@Capilta

Capilta
18 May 2016, 09:01 ( Updated at: 21 Dec 2023, 09:20 )

RE:

Capilta said:

i use id.ctrader.com on internet explorer it is working. here the picture. but not work on platform 

 

http://prntscr.com/b5dxvu

 

I clean reinstall again cTrader. but again same problem. what should i do now. 

 

 


@Capilta

Capilta
18 May 2016, 08:20

i use id.ctrader.com on internet explorer it is working. here the picture. but not work on platform 

 

http://prntscr.com/b5dxvu


@Capilta

Capilta
18 May 2016, 04:48

RE:

Spotware said:

Dear Trader,

Could you please provide us with more information regarding your issue?

For example when have you started experiencing this issue? Have you installed a certain program or a Browser extension on Internet explorer?

In addition, could you please restart your Computer and try again?

 

I restart my computer. but still same problem. I used cTrader and Login was working fine. I just reinstall my computer and now Login not working. i have two cTrader, 1.Pepperstone cTrader and 2. Octafx cTrader both platform Login not working. I use default browser Chrome, i am not using internet explorer. i don't know why it happens. please help me. 


@Capilta

Capilta
14 Nov 2014, 13:58

RE:

Spotware said:

But when backtest test Print result show like:  high-low = 7.0000 like that . this is wrong result

7E-05 means 7 * Math.Pow(10, -5) = 0.00007

 

I am sorry don't understand. do you mean both are same. then why show different value. Then below code  not work on backtest.

            double HL = MarketSeries.High[0] - MarketSeries.Low[0];
            double MaLow = MA_Low.Result.Last(0);
            double MaHigh = MA_High.Result.Last(0);
            if (HL > _Filter)
            {
                    SingalType = 1;
            }

Above code "HL>_Filter" never true in backtest. it is work on forward test. But never True in backtest.


@Capilta