Announcement

Collapse
No announcement yet.

Very simple reqest

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

  • #16
    hi i have just discovered TRIX - how do i get going so that it shows both long and short on my chart

    Thanks
    Robin

    Comment


    • #17
      Robin
      In preMain() add the following two statements

      setColorPriceBars(true);
      setDefaultPriceBarColor(Color.black);


      Then after line 56 of the script add the following

      if(Strategy.isLong())
      setPriceBarColor(Color.lime);
      if(Strategy.isShort())
      setPriceBarColor(Color.red);


      This will color the price bars in lime when long and in red when short
      Alex

      Comment

      Working...
      X