Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Logic code to fill in bid and ask with strategies

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

    Logic code to fill in bid and ask with strategies

    Hello. Actually in my own strategies im using the follwing code to generate Market orders with strategy condition are filled.

    protected override void OnBarUpdate()
    {
    ...
    if ( x[0] > x[1]) ExitLong();

    if ( x[0] < x[1]) ExitShort();

    }

    But I’m trying to code the following methods i cant retrieve the correct logic to do that please read my questions and help me with some guidance for that.

    1. I want execute orders not only in market I want when my strategies get condition filled enter the order in Ask or Bid according my guidelines For example

    (Strategy condition filled THEN strategy sends order Buy to BID or Sell to Ask)

    Also I want to know how put that Option available in code to True o False in my strategies code
    .
    I really appreciate that info
    Best regards
    Gavetso

    #2
    I want some guidelines code to get my strategies Buy in Bid and sell in ask PLEASE

    Comment


      #3
      Gavetso, I have just replied to your note sent to support.

      Comment


        #4
        thank you ber

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        59 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        143 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        283 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X