Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Show Bid/Ask Indicator

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

    Show Bid/Ask Indicator

    I loaded this indicator. It works. The bid/ask lines are so faint on the chart you cannot see them. When I select the line on the chart and make the color darker, it works, until the chart updates and it goes back to the faint color you cannot see.

    Any way to change the color on the lines?

    #2
    Hi rtj4201, for this you would need to change the assigned color in the code directly - you want to modify those two colors :

    Code:
    [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2](displayAskLine) DrawRay([/SIZE][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]"AL"[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], [/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], a, [/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], a, [COLOR=red]Color.Pink[/COLOR], DashStyle.Dash, [/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]);
    [/SIZE][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2](displayBidLine) DrawRay([/SIZE][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]"BL"[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], [/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], b, [/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], b, [COLOR=red]Color.CornflowerBlue[/COLOR], DashStyle.Dash, [/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]);[/SIZE][/SIZE]
    [SIZE=2][SIZE=2][/SIZE][/SIZE]



    BertrandNinjaTrader Customer Service

    Comment


      #3
      I changed it to red and blue, but it could still be darker. How do I adjust teh size of the line?

      Comment


        #4
        Try changing the DashStyle.Dash to DashStyle.Solid and also use a higher width setting of for example 3 -

        Code:
        [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2](displayAskLine) DrawRay([/SIZE][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]"AL"[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], [/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], a, [/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], a, Color.Blue, DashStyle.Solid, 3[/SIZE][/SIZE][SIZE=2][SIZE=2]);
        [/SIZE][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2](displayBidLine) DrawRay([/SIZE][/SIZE][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000][SIZE=2][COLOR=#800000]"BL"[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], [/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], b, [/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], b, Color.Red, DashStyle.Solid, 3[/SIZE][/SIZE][SIZE=2][SIZE=2]);
        [/SIZE][/SIZE]
        BertrandNinjaTrader Customer Service

        Comment


          #5
          I went to tools, edit ninjascript and changed the indicator, but it does not appear to be changing.

          Comment


            #6
            Please hit F5 on your chart to reload the NinjaScript indicator. Then it should be refreshed.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Did not change it when i hit F5.

              Comment


                #8
                Please try to remove and reload the indicator then.
                BertrandNinjaTrader Customer Service

                Comment


                  #9
                  Remove it from the chart or the indicator base.

                  Comment


                    #10
                    Remove it completey from the chart and then reload it fresh.
                    BertrandNinjaTrader Customer Service

                    Comment


                      #11
                      Tried it and it did not work.

                      Comment


                        #12
                        Did you compile your changed indicator by pressing F5 in the editor after you did your code changes?
                        BertrandNinjaTrader Customer Service

                        Comment


                          #13
                          Tried to post compilation errors but could not find a way to paste it.

                          Basically, it says red, blue and solid are not allowable.

                          Comment


                            #14
                            Ok, i am new to programming.

                            red has to be Red
                            blue has to be Blue
                            dash has to be Dash

                            It compiled and now works

                            Comment


                              #15
                              Please import the attached file and overwrite when it asks...this one works for me.
                              Attached Files
                              BertrandNinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by NM_eFe, Today, 05:15 PM
                              0 responses
                              2 views
                              0 likes
                              Last Post NM_eFe
                              by NM_eFe
                               
                              Started by vitaly_p, Today, 05:09 PM
                              0 responses
                              1 view
                              0 likes
                              Last Post vitaly_p  
                              Started by cmtjoancolmenero, Today, 05:05 PM
                              0 responses
                              1 view
                              0 likes
                              Last Post cmtjoancolmenero  
                              Started by lucasmelo152, 06-28-2021, 12:51 PM
                              8 responses
                              2,124 views
                              0 likes
                              Last Post Ymcapital  
                              Started by Creamers, 04-27-2024, 05:32 AM
                              11 responses
                              69 views
                              0 likes
                              Last Post Creamers  
                              Working...
                              X