Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error automated strategy on real account - order rejected

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Error automated strategy on real account - order rejected

    Hi everybody

    I have an issue in live with an automated system (see the picture), I don't understand why. On sim everyting's perfect (picture 2)

    Could you help me ?

    Thanks a lot !

    Code:
    	if (Achat==1 && TradeJ==1) {
    			EnterLong(1);
    			TradeJ=0;
    		}
    		
    		if (Vente==1 && TradeJ==1) {
    			EnterShort(1);
    			TradeJ=0;
    		}
    		
    		if ((StopL==500 || Objectif==500) || ToTime(Time[0])==Ending-10000) {
    			ExitShort();
    			ExitLong();
    		}
    Attached Files
    Last edited by After; 05-27-2015, 04:58 PM.

    #2
    Hello,

    It is difficult to say based on your code snippet, because everything looks okay there. Can you please send a full export of your code (File > Utilities > Export NinjaScript) to platformsupport [at] ninjatrader [dot] com, and reference ticket # 1325062, so that I can test further?
    Dave I.NinjaTrader Product Management

    Comment


      #3
      Here you can find everything

      Code:
      if (Buyingcondition) {
      			SignalA = 1000;
      			UnPJ = 0;
      			Achat=1;
      		} else SignalA = 0;
      		
      if (SellCondition) {
      			SignalV = 1000;
      			UnPJ = 0;
      			Vente=1;
                    } else SignalV = 0;
      		
      		
      		
      		
      if (Vente==0 && Achat==0) {
      			Objectif =0;
      		    StopL = 0;
      		}
      		
      		
      if (Achat==1 && Condition) {
      			Objectif = 500;
      			Achat=0;
      			Resultat =Y;
      		} else if (Achat==1 && Condition) {
      			StopL = 500;
      			Achat=0;
      			Resultat =Y;
      		} else if (Vente==1 && Condition) {
      			Objectif = 500;
      			Vente = 0;
      			Resultat = (CloseV-Close[0]);
      		} else if (Vente==1 && Condition) {
      			StopL = 500;
      			Vente = 0;
      			Resultat =Y;
      		} 
      		
      		
      		
      		
      if (Achat==1 && TradeJ==1) {
      			EnterLong(1);
      			TradeJ=0;
      		}
      		
      if (Vente==1 && TradeJ==1) {
      			EnterShort(1);
      			TradeJ=0;
      		}
      		
      if ((StopL==500 || Objectif==500) || ToTime(Time[0])==Ending-10000) {
      			ExitShort();
      			ExitLong();
      		}

      Comment


        #4
        Originally posted by After View Post
        Here you can find everything

        You should really send the entire code piece into NT Support as requested... they are willing to look at it for you.

        It maybe something as simple as you trying to issue both an ExitShort and ExitLong when only have a Short position?

        Comment


          #5
          Originally posted by sledge View Post
          You should really send the entire code piece into NT Support as requested... they are willing to look at it for you.

          I get an Non Disclosure Agreement with this code, it's not simple. Here you get all the structure so we could be able to detect from wich part of the code comes the issue.

          Everything runs fine on a sim account I don't understand I'm disappointed, I already lose months (and money) because of a system with two legs which ran perfectly on sim but messed up on real account (without find a solution), sales service is very great but the platform has definitly not the level expected.

          "It maybe something as simple as you trying to issue both an ExitShort and ExitLong when only have a Short position?"

          Thanks very much I'll try ! Any other idea ?
          Last edited by After; 05-27-2015, 06:48 PM.

          Comment


            #6
            Are you allowed to trade that instrument? Do you have sufficient margin requirements?

            I don't know what's required. I've never tried that FDAX.

            Comment


              #7
              Sure I trade with AMP and FDAX DayTrade Margin is $2500 (more than $20 000 on the account)

              Comment


                #8
                Are you trading the quarterly contract or the continuous contract (##-##)?

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by rjbtrade1, 11-30-2023, 04:38 PM
                2 responses
                75 views
                0 likes
                Last Post DavidHP
                by DavidHP
                 
                Started by Stanfillirenfro, Today, 07:23 AM
                3 responses
                12 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by FitSpressoHonest, Today, 09:14 AM
                0 responses
                4 views
                0 likes
                Last Post FitSpressoHonest  
                Started by Davide999, 05-18-2023, 03:55 AM
                4 responses
                557 views
                1 like
                Last Post kcwasher  
                Started by rexsole, Today, 08:39 AM
                2 responses
                8 views
                0 likes
                Last Post NinjaTrader_Erick  
                Working...
                X