Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy not taking trades

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

    Strategy not taking trades

    I have a strategy that paints the background panels + take a trade.
    It is painting the background correctly but not taking any trades.

    Code:
    ((High[mySwing1.SwingHighBar(0, 1, 60)] < High[mySwing1.SwingHighBar(0, 2, 60)])
    &&
    (Low[mySwing1.SwingLowBar(0, 1, 60)] > (Low[mySwing1.SwingLowBar(0, 2, 60)])))
    
    {
    EnterLong(Convert.ToInt32(DefaultQuantity), "");
    BackBrush = Brush1;
    }
    Basically taking a trade when there is a higher low swing high + a lower high swing low.

    #2
    Hello Ousher,

    You may be having an ignored order, the painting indicates that the condition was true. Please try enabling TraceOrders and then check the NinjaScript output window for warnings.



    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    30 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X