kyro747
kyro747's avatar

Info

Username:kyro747
Name:kyro747
Member since: 19 May 2013

About

None

Signature

None

Last Forum Posts

@Update on cMulti, cTrader MAM accounts:  09 Mar 2014, 06:32


cMulti, cTrader MAM accounts

Please give an update on when one or both of these features will be made available.

Thanks

@Backtesting with data from CSV file:  30 Nov 2013, 09:41


Will it be possible to load 1m data in blocks rather than have to run it off one file as it is unlikely you have all the data in 1 file? E.g. I have it in 1 year files.

@Different server connection locations and latency:  12 Sep 2013, 12:50


I have an account at IC markets and a VPS which is on net via Commercial Network Services in New York.

The IC markets cAlgo from this VPS connects to London-3 giving ~40ms latency. Is there no server closer to NY? Does this not defeat the purpose of having a VPS on net with your broker?

I also login to my cAlgo account from my home desktop whilst is logged in on the VPS. At home in Australia I get connected to Sydney-3. I then notice that my VPS has connected to Sydney-3 also. Should this be happening?

@Handling cAlgo Restart/crash/disconnect:  11 Aug 2013, 09:56


If cAlgo is disconnected will it forget open positions from cBots?

If cAlgo is restarted or crashes will it forget open positions from cBots?

If yes, is there a workaround or an update coming soon to address this issue? 

thanks

@Multiple positions - trades being closed at same time instead of separately:  30 May 2013, 04:44


Also as a side note:

Is it possible to have the same robot running on multiple currencies at same time? As a test I have tried running on 4 and it keeps stopping 2 of them and only running 2....

@Multiple positions - trades being closed at same time instead of separately:  29 May 2013, 17:50


Thankyou for the reply.

I mean that if (Buyexit) is true then I want to exit all long trades, but not exit any short trades.

"Where Label may be an input parameter or constant field."

Can you please give me an example of how to do this so I can reference individual trades or just long or short trades?

I have tried using the multiple positions example code with no success yet.

@Multiple positions - trades being closed at same time instead of separately:  29 May 2013, 10:46


Apologies, code should read:

 

 

foreach (var position in Account.Positions) 
            {    
            
                  if (_position.TradeType == TradeType.Buy)
                  {
                
                        if (Buyexit )
                        
                            {
                                  
                                  Print("Profit Exit");
                                  Trade.Close(position);
                                  
                            }
                     
                  }
               
                  if (_position.TradeType == TradeType.Sell)
                  {
           
                          if (Sellexit)
                              
                              {
                                  
                                  Print("Profit Exit");
                                  Trade.Close(position);
                                  
                              }
          
                  }
                             
           }

Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.

No uploaded.

Warning! Executing cBots downloaded from this section may result in loss of funds. Use them at your own risk.

No uploaded.