Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.
-
Content Count
512 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Articles
Everything posted by Blu-Ray
-
Market Calendar !!!FreeWare!!! for All.
Blu-Ray replied to Szymon's topic in Trading Products and Services
Hi Simon Thanks for the quick response, what I basically want is to view the calendar in my local time rather than EST/EDT. So in your properties section where it say's "EasternTime Zone", would it be possible to add "Local Time" as well. I've attached a photo to explain what I mean, the top calendar is from the forexfactory site and the lower is your calendar. ( Basically it's just me being lazy and I want to see it in my local time :o) Cheers Blu-Ray -
Market Calendar !!!FreeWare!!! for All.
Blu-Ray replied to Szymon's topic in Trading Products and Services
Thanks Simon for your good work, would it be possible to have a choice to display the calendar in local time. Cheers Blu-Ray -
It should be possible to convert them to Ninjatrader, however I don't know how to use their coding language. If I'm understanding your last question correctly, the three lines are all different lengths, top one being 13hma, middle 21hma and the bottom one a 89hma. Hope this helps Blu-Ray
-
Here's a new one that's just been added: BR_Trend_Bars and the code : ( You'll need the jtHMA function as posted above ) Inputs: Price(Close), Length1(13), Length2(34), Length3(89), UpLevel(35), MidLevel(0), LwrLevel(-35); Value1 = jthma(Price,Length1); Value2 = jthma(Price,Length2); Value3 = jthma(Price,Length3); if Value1 > Value1[1] then Plot1(UpLevel,"UpLevel", Green) else Plot1(UpLevel,"UpLevel", Red); if Value2 > Value2[1] then Plot2(MidLevel,"MidLevel",Green) else Plot2(MidLevel,"MidLevel",Red); if Value3 > Value3[1] then Plot3(LwrLevel,"LwrLevel",Green) else Plot3(LwrLevel,"LwrLevel",Red); Hope this helps Blu-Ray BR_TREND_BARS.ELD
-
My Apologies, it requires the jtHMA function which I forgot to post the code, so here it is: {jtHMA - Hull Moving Average Function} {Author: Atavachron} {May 2005} Inputs: price(NumericSeries), length(NumericSimple); Vars: halvedLength(0), sqrRootLength(0); { Original equation is: --------------------- waverage(2*waverage(close,period/2)-waverage(close,period), SquareRoot(Period) Implementation below is more efficient with lengthy Weighted Moving Averages. In addition, the length needs to be converted to an integer value after it is halved and its square root is obtained in order for this to work with Weighted Moving Averaging } if ((ceiling(length / 2) - (length / 2)) <= 0.5) then halvedLength = ceiling(length / 2) else halvedLength = floor(length / 2); if ((ceiling(SquareRoot(length)) - SquareRoot(length)) <= 0.5) then sqrRootLength = ceiling(SquareRoot(length)) else sqrRootLength = floor(SquareRoot(length)); Value1 = 2 * WAverage(price, halvedLength); Value2 = WAverage(price, length); Value3 = WAverage((Value1 - Value2), sqrRootLength); jtHMA = Value3; Hope this helps Blu-Ray
-
Here's the code : Inputs: SqLength(20), Length1(9), Length2(13), Length3(21), CounterTrendMode(false), ChangeMidLine(false), nK(1.5), nBB(2), AlertLine( 1 ); vars: CCiValue(0),DownCT(0),UpCT(0),SDev(0),ATR(0),LHMult(0),Denom(0),BBS_Ind(0); if ChangeMidLine = false then begin {MiddleLine - based on BB Squeeze} if ( barnumber=1 ) then Begin If minmove <> 0 then LHMult = pricescale/minmove; end; {-- Calculate BB Squeeze Indicator ----------------------} ATR = AvgTrueRange(SqLength); SDev = StandardDev(close, SqLength, 1); Denom = (nK*ATR); If Denom <> 0 then BBS_Ind = (nBB * SDev) /Denom; If BBS_Ind < Alertline then SetPlotColor(1, Red) else SetPlotColor(1, Blue); if BBS_Ind crosses below AlertLine then SetPlotColor(1, green); {-- Plot the Index & Alert Line -------------------------} Plot1(0, "Squeeze"); end; if ChangeMidLine = true then begin {MiddleLine - based on a Hull Moving Average} value1 = jthma(H/3+L/3+C/3,Length3); if (Value1) > (Value1[1]) then SetPlotColor(1, green); if (Value1) < (Value1[1]) then SetPlotColor(1, red); Plot1(0, "Squeeze"); end; {Histogram - based on two ema's of Hull MA's} value3 = xaverage(jthma(close, length1),Length2) - xaverage( jthma(close, length2), length2+7 ); plot4(value3,"DiffHisto"); if value3 > 0 then if value3 > value3[1] then setplotcolor(4,green) else setplotcolor(4,darkgreen); if value3 < 0 then if value3 < value3[1] then setplotcolor(4,red) else setplotcolor(4,darkred); {++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++} { Counter Trend Mode - Based on when cci(13) gets below 50 and stays dark red until going back above 100} if CounterTrendMode = true then begin CCiValue = CCi(13); Condition1 = ccivalue[1] > 50; Condition2 = CCivalue < 50; Condition3 = CCivalue[1] < 100; Condition4 = CCiValue > 100; Condition5 = value3 > 0; Condition6 = value3[1] > 0; Condition7 = value3[2] > 0; Condition8 = ccivalue < 100; if Condition1 and Condition2 and Condition5 and condition6 and condition7 then begin setplotcolor(4,DarkRed); DownCT = 1; end; if DownCT = 1 and value3 < 0 then DownCT =0; if DownCT = 1 and Condition8 and Condition5 then setplotcolor(4,darkred); if DownCT = 1 and Condition3 and Condition4 then begin setplotcolor(4,green); DownCT = 0; end; Condition11 = ccivalue[1] < -50; Condition12 = CCivalue > -50; Condition13 = CCivalue[1] >- 100; Condition14 = CCiValue < -100; Condition15 = value3 < 0; Condition16 = value3[1] < 0; Condition17 = value3[2] < 0; Condition18 = ccivalue >-100; if Condition11 and Condition12 and Condition15 and condition16 and condition17 then begin setplotcolor(4,DarkGreen); UpCT = 1; end; if UpCT = 1 and value3 > 0 then UpCT =0; if UpCT = 1 and Condition18 and Condition15 then setplotcolor(4,darkgreen); if UpCT = 1 and Condition13 and Condition14 then begin setplotcolor(4,Red); UpCT = 0; end; end; Cheers Blu-Ray
-
Darknite Give this a try: Inputs: ProfTarget(30),StopLoss(2 ),endtime(2000); Vars: ShortEntry(0), Permission(0), Mintick(0), mystop(0), MP(0); MP = marketposition; Mintick = minmove/pricescale; Condition1 = C[1] data3 >C[2] data3 and H data3 > H [1]data3 and H data3 > H[2] data3 and C data3 < O data3; if condition1 and MP = 0 and time < endtime and permission = 0 then begin ShortEntry = Low of data2 - (1*mintick); mystop = High of data2 + (Stoploss*mintick); permission = 1; end; if permission = 1 and mro(mp=-1,7,1) = -1 then begin SellShort next bar at ShortEntry Stop; Permission = 2; end; if permission = 2 and mod(t,100)=0 and mp <> 0 then permission = 2; if permission = 2 and mod(t,100)=0 and mp = 0 then permission = 0; if mp = -1 then begin buytocover ("StoppedOut") next bar at mystop stop; end; if mp = -1 and time > endtime then setexitonclose; setprofittarget( ProfTarget ); Cheers Blu-Ray
-
No probs, thanks for looking into it. Cheers Blu-Ray
-
Darknite Yes it's do-able, but I'm away now for a week, so I'll look into it when I get back, unless someone else sorts it out in the meantime. Cheers Blu-Ray
-
Yes no problems, but I'm away now for a week, so I'll sort it out when I get back, just send me a PM in a week's time to remind me on. Cheers Blu-Ray
-
Thanks, hehehe :o...........they're all free !!!
-
PaintBarFactory.com? (not spam, a question!)
Blu-Ray replied to Disco Scottie's topic in General Discussion
Here you go, try this link http://www.traderslaboratory.com/forums/f46/paintbar-replicas-squeeze-2fastmas-etc-3688.html#post33412 -
Here is a bundle of indicators for you, the development of them were requested as per this thread. http://www.traderslaboratory.com/forums/f18/paintbarfactory-com-not-spam-a-question-3168.html I have been hesitant to post these as some of them are NOT the same as per the above thread. But due to several requests recently I'm posting them anyway. The attached indicators are: BR_CCi : Which is basically a smoothed CCi. BR_RSI : Which again is a smoothed RSi. BR_Momentum : Again a smoothed Momentum ( Can't believe people would actually charge for these ) BR_PaintBars : MA based trend bars. BR_2FastMa's : Self explanatory. BR_Squeeze : Partly based on the original squeeze ( as we all know it ), but the histogram is defined to show clearer divergences. Also includes CounterTrend and an alternative midline. BR_HeatMeter : Can you take the heat ! ( well actually it's just a 50 period CCi :\) For more information on the indicators, please go to the above thread for details. See Attached Charts to show each indicator. Can I just stress that some of these are NOT THE SAME, so take them with a pinch of salt Cheers Blu-Ray BR_2FASTMA'S.ELD BR_CCI.ELD BR_HEATMETER.ELD BR_MOMENTUM.ELD BR_PAINTBARS.ELD BR_RSI.ELD BR_SQUEEZE.ELD
-
Ian Yes it is exactly the same and it's FREE ! Cheers Blu-Ray
-
Darknite Here's the code you require but it has an error in it that I can seem to get rid of at the moment. As you'll see in the charts below, first one is great with entry and exits perfect, but then on the second chart, it seems to fire off an order on a second bar if the first bar had entry & profit target all within the same bar. :bang head: All I can say is try it out and let me know how you get on. Inputs: ProfTarget(30),StopLoss(2 ),endtime(2000); Vars: ShortEntry(0), Permission(0), Mintick(0), mystop(0), MP(0); MP = marketposition; Mintick = minmove/pricescale; Condition1 = C[1] data3 >C[2] data3 and H data3 > H [1]data3 and H data3 > H[2] data3 and C data3 < O data3; if condition1 and MP = 0 and time < endtime then begin ShortEntry = Low of data2 - (1*mintick); mystop = High of data2 + (Stoploss*mintick); permission = 1; end; if permission = 1 and mro(mp=-1,7,1) = -1 then begin SellShort next bar at ShortEntry Stop; Permission = 0; end; if permission[2] = 1 then permission = 0; if mp = -1 then begin buytocover ("StoppedOut") next bar at mystop stop; end; if mp = -1 and time > endtime then setexitonclose; setprofittarget( ProfTarget ); ( Note: Set up your chart like in the pics above, 5 min of stock on data1, 30 min of stock on data2 and $INDU on data3 ) Cheers Blu-Ray
-
No Probs, leave it with me as I'm on with it now, but just trying to iron out an error. Cheers Blu-Ray
-
No, by that comment I meant me :doh: I'll tell you what, instead of all this too-ing and fro-ing, explain exactly what you require ( eg, symbols, timeframes, targets, stoploss, etc ) and any little problems you've come across and I'll sort it out. You can send it by PM if you wish. Cheers Blu-Ray
-
No, the setstoploss is in dollar amount only from your entry point. What you require is in the original script, but I suspect you must be using a larger timeframe and have come across occasions when your stop would have been taken out on your bar of entry, but since the code only sends the stop order out 1 bar after entry, you're taking a bigger hit. Would I be correct in thinking this? If so then you would have to send out your order via a 1min chart ( using 3 sets of data ) ........... now where did I put that can of worms :o Cheers Blu-Ray
-
Remove these lines below: if mp = -1 then begin buytocover ("StoppedOut") next bar at mystop stop; end; and the add this to the bottom of the script: setstoploss( x ); Note: Same as setprofittarget, the setstoploss is now in dollar amount rather than number of ticks. Cheers Blu-Ray ps: No probs I'll await your PM.
-
Here you go:
-
I don't think you can trade a strategy off data2, I'm pretty sure it has to be data1, I'll look into it after hours, unless someone else can verify. Cheers Blu-Ray
-
Darknite Yes i know what you mean, Here's a chart with your strategy ( data1 only ) using the " SetProfittarget ".
-
Just noticed your edited part, yes you can. Remove the red line below: if mp = -1 then begin buytocover ("ProfitTarget") next bar at ShortEntry - (ProfTarget*mintick) limit; buytocover ("StoppedOut") next bar at mystop stop; end; and the add this to the bottom of the script: setprofittarget( x ); Note: the profit target is now in dollar amount rather than number of ticks. Cheers Blu-Ray
-
With regards to it only taking 80% of the trades as per the show me, I would guess the next bar did not take out the low of the signal bar, as this strategy only sends the sellshort order on the very next bar. Here's the revised code with an endtime added as an input: Inputs: ProfTarget(30),StopLoss(1 ),endtime(1900); Vars: ShortEntry(0), Permission(0), Mintick(0), mystop(0), MP(0); MP = marketposition; Mintick = minmove/pricescale; Condition1 = C[1] data2 >C[2] data2 and H data2 > H [1]data2 and H data2 > H[2] data2 and C data2 < O data2; if condition1 and MP = 0 and time < endtime then begin ShortEntry = Low - (1*mintick); mystop = High + (Stoploss*mintick); permission = 1; end; if permission = 1 then begin SellShort next bar at ShortEntry Stop; Permission = 0; end; if mp = -1 then begin buytocover ("ProfitTarget") next bar at ShortEntry - (ProfTarget*mintick) limit; buytocover ("StoppedOut") next bar at mystop stop; end; Also add either of these two lines to the end of the code.... This one will close your position if you've got an open position and it's after the endtime. Note: It will close the position whether it's in profit or loss. if mp = -1 and time > endtime then buytocover next bar at market; Or the second one will set the exit on the close of the session, again whether it's in profit or loss. ( But note this should only be used on historical simulations, as depending on the instrument it can lead to your exit being taken on the open of the next day) if mp = -1 and time > endtime then setexitonclose; Hope this helps Blu-Ray
-
James Good thread, would you mind going in depth about the saying " Not all hammers are equal" Cheers Blu-Ray