Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Builder - Using a Buy/Sell indicator

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

    #16
    Originally posted by marco231 View Post
    I forgot to mention, if you run into little problems like this try painting the background for order execution and reviewing your order entry conditions and also open the data box to get an understanding of what the indicators are printing out (saves time from having to manually use the print function).
    Thx for taking a look and pointing me in the right direction

    Comment


      #17
      Originally posted by bnoisette View Post

      Thx for taking a look and pointing me in the right direction
      ok Sorry to inquire again but can you check to see if you can get it to take sell orders. I can get it to take buys but it is not taking doing sell orders. I actually changed the code to this (VolumeBasedBuySellSignals1.SellSignal[0] != 0) for the buy signal as well and all it does it take buy orders.

      Comment


        #18
        Here is what I have for the short section. On the longs it will still take trades without the print that is why I have it commented out here. The long is exactly the same except labeled "Buy"
        // Set 2
        if ((VolumeBasedBuySellSignals1.SellSignal[0] != 0)
        //&& (Close[0] <= Close[1])
        //&& ((BarsSinceExitExecution() > 3)
        //|| (BarsSinceExitExecution() == -1)
        && (Position.MarketPosition == MarketPosition.Flat))
        {
        //Print(@"VolumeBasedBuySellSignals1.SellSignal[0]:" + Convert.ToString(VolumeBasedBuySellSignals1.SellSi gnal[0]));
        }
        {
        EnterShort(1, @"ShortCTP");
        EnterShort(1, @"ShortCTR");​

        Comment


          #19
          Here is what I have for the short section. On the longs it will still take trades without the print that is why I have it commented out here. The long is exactly the same except labeled "Buy"
          // Set 2
          if ((VolumeBasedBuySellSignals1.SellSignal[0] != 0)
          //&& (Close[0] <= Close[1])
          //&& ((BarsSinceExitExecution() > 3)
          //|| (BarsSinceExitExecution() == -1)
          && (Position.MarketPosition == MarketPosition.Flat))
          {
          //Print(@"VolumeBasedBuySellSignals1.SellSignal[0]:" + Convert.ToString(VolumeBasedBuySellSignals1.SellSi gnal[0]));
          }
          {
          EnterShort(1, @"ShortCTP");
          EnterShort(1, @"ShortCTR");​

          Comment


            #20
            Originally posted by bnoisette View Post

            Thx for taking a look and pointing me in the right direction
            ok Sorry to inquire again but can you check to see if you can get it to take sell orders. I can get it to take buys but it is not taking doing sell orders. I actually changed the code to this (VolumeBasedBuySellSignals1.SellSignal[0] != 0) for the buy signal as well and all it does it take buy orders.

            Comment


              #21
              I fixed it

              Comment


                #22
                The strategy doesnt take any trades --

                Comment


                  #23
                  Do yu have the latest fixed code that I can test

                  Comment


                    #24
                    Originally posted by marco231 View Post
                    Awesome , thanks this works! and fires only when the candle prints a signal.

                    Thank you so much.
                    Hey do you mind sharing your smart channels strategy

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by NullPointStrategies, Yesterday, 05:17 AM
                    0 responses
                    56 views
                    0 likes
                    Last Post NullPointStrategies  
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    132 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    73 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    45 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    49 views
                    0 likes
                    Last Post TheRealMorford  
                    Working...
                    X