• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

WillSpread Indicator

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

  • JohnDev
    started a topic WillSpread Indicator

    WillSpread Indicator

    Can anyone code this indicator? The code here is in Genesis Trade Sense. I'm completely lost with C#.

    It takes a spread between two market symbols and creates a moving average type indicator. In this case, it shows when the ES is gaining on the 30 year bond. It would be great to have an input variable for the two symbols, so I could change them and use it on different markets.

    Thanks,
    John

    &Spread := (Close Of "ES-067" / Close Of "ZB-067") * 100
    &5EMA := MovingAvgX (&Spread , 5 , True)
    &20EMA := MovingAvgX (&Spread , 20 , True)
    &5EMA - &20EMA

  • Steadman
    replied
    Willspread for NT 8

    Hi,
    Does anyone know of a version of Willspread that will work on NT8? MrDude's version worked fine on NT7, but I can't get it to import to NT8. Says it's incompatible.
    Thanks

    Leave a comment:


  • robinecek
    replied
    I have figured it out, thanks for your help and patience

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello robinecek,

    The days of data supplied to the indicator will be the Days to load set in the Data Series parameters.
    (Right-click chart -> select Data Series... -> on the right look for Days to load)

    Leave a comment:


  • robinecek
    replied
    I got it but how can I set the number of days for an indicator?

    Leave a comment:


  • mrdude
    replied
    Scroll to the left of your chart. Do you have bars for both data sets? If you don't have bars for both data sets the indicator will not work because it can't compare two values if it only has one set of values.
    Your chart should look like the attached image
    Attached Files

    Leave a comment:


  • robinecek
    replied
    I finally disabled the merging and now I got the stock data "longer" than the ZB data.
    But the indicator is still not plotted :-(

    What am I doing wrong?

    Leave a comment:


  • mrdude
    replied
    If you can only get one year of stock data, make sure that both of your data sources have valid entries for all days. Scroll to the left of your chart and if one data source has bars and not the other the indicator will not work because there is missing data. You can change the number of days to load for each data source so that they both have valid data for all days.

    Leave a comment:


  • robinecek
    replied
    Please, any ideas how to fix this?

    Leave a comment:


  • robinecek
    replied
    I tried to download 2 years of AAPL but it downloades only 1 year max and by adding ZB 06-14 as the second data series, I see there is more candles than AAPL but I can´t figure out how to load more than 1 year of stocks.
    Also as I wrote earlier it happened once at the beginning that I succeeded in having willspread plotted and I guess, if there are gaps, they were there before as well but just guessing

    Leave a comment:


  • mrdude
    replied
    The problem is likely gaps in the stock data. The futures market will have more candles, so check your chart and see if there are any gaps at the beginning of your chart in the AAPL data. If there are, either reload the data or change the Days to Load for your data series to make sure there are no gaps at the beginning of the chart.

    Leave a comment:


  • robinecek
    replied
    Hi guys,

    I have downloaded the 1.2 version, used it on AAPL and for the first time no line appeared. I tried to load the ZB 06-14 as new chart and then tried AAPL with willspread indicator again and it worked. I am not 100% sure how I made it work (not sure about the procedure) but now it isn´t working anymore.

    Did someone find out where´s the problem?

    Thank you

    Leave a comment:


  • mrdude
    replied
    I don't have any tick data to test with, but maybe this updated version will work?
    Attached Files

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hi Steadman,

    This indicator contains much unsupported code so I will leave this to other forum members to answer.

    A tip though, there is a switch deciding what data series to add. This is highly unsupported and is a possible cause of the issue.

    You might want to ask mrdude for more details about the script.

    Leave a comment:


  • Steadman
    replied
    Excuse me, it is working with time charts, but not tick charts. Thanks and Merry Christmas.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by StealthM93, Today, 07:58 PM
0 responses
2 views
0 likes
Last Post StealthM93  
Started by Mykro, Today, 11:01 AM
1 response
5 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by bauerjj10, Today, 12:24 PM
1 response
12 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by Newtrader101, Today, 06:01 PM
1 response
6 views
0 likes
Last Post NinjaTrader_EricB  
Started by Steve L, Today, 03:50 PM
1 response
9 views
0 likes
Last Post NinjaTrader_ChelseaB  
Working...
X