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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        47 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X