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
-
Great work Tams ! Here it is in ELD format. Cheers Blu-Ray IADX.ELD
-
Thanks for this, it looks very interesting. I've attached the ELD & also a txt file as I've just corrected some of errors that occur when copy & pasting code straight onto the thread. Cheers Blu-Ray BRYCEGYLMORESR.ELD BryceGylmoreSR.txt
-
NO !! ...................... ...... lol... only joking, here you go : inputs: UpColor(Green), DownColor(Red), UpDivergence(Blue), DownDivergence(Magenta); variables: MyVol(0), LL(0),HH(0), Color(yellow), intrabarpersist MyCurrentBar(0), intrabarpersist VolumeAtBid(0), intrabarpersist VolumeAtAsk(0), intrabarpersist BAVolDiff(0), intrabarpersist VolTmp(0); if date <> date[1] then begin LL = low; HH = High; end; if Low < LL then LL = Low; if High > HH then HH = high; if LastBarOnChart then begin MyVol = Iff(BarType < 2, Ticks, Volume); if CurrentBar > MyCurrentBar then begin VolumeAtBid = 0; VolumeAtAsk = 0; BAVolDiff= 0; VolTmp = 0; MyCurrentBar = CurrentBar; end; if InsideBid < InsideAsk then begin if Close <= InsideBid then VolumeAtBid = VolumeAtBid + MyVol - VolTmp else if Close >= InsideAsk then VolumeAtAsk = VolumeAtAsk + MyVol - VolTmp ; end; if VolumeAtBid > 0 and VolumeAtAsk > 0 then BAVolDiff= VolumeAtAsk-VolumeAtBid ; VolTmp = MyVol ; end ; if BAVolDiff<= 0 then color = DownColor else color = UpColor; plot1(BAVolDiff, "BAVolDiff", color); Plot2( 0, "ZeroLine" ) ; if low = LL and BAVolDiff> 0 then begin setplotcolor(1,UpDivergence); Alert( "New Low_Bid/Ask_Divergence"); end; if high = HH and BAVolDiff< 0 then begin setplotcolor(1,DownDivergence); Alert ("New High_Bid/Ask_Divergence"); end; Hope this helps Blu-Ray
-
Just format any indicator, click on the color tab, then select other.... it then displays a spectrum of colors and it shows you the exact RGB values for that specific color. Then in your indicator just type this ( for example ) ..... RGB(255,128,128) as a value in your input. Hope this helps Blu-Ray
-
You need to insert a begin and end to the if statements...... because the way it stands at the moment, the if statement is only looking to plot. The alert isn't included within that statement. It should look like this..... inputs: shortMA(3), longMA(10); vars: FastOsc(0); FastOsc=averagefc(c,shortMA)-averagefc(c,longMA); if FastOsc=highest(c,30) then begin plot1(FastOsc,"Momo high"); alert("Momentum High"); end; if FastOsc=lowest(c,30) then begin plot2(FastOsc,"Momo low"); alert("Momentum Low"); end; Hope this helps Blu-Ray
-
If you've got tradestation, then just click on the attached files and it will automatically download them directly into tradestation. Then just insert them onto your desired chart. Hope this helps Blu-Ray
-
Format the indicator, click on the scaling tab, then select " Same Axis as Underlying Data "...... and this will then put it onto the price chart. Hope this helps Blu-Ray
-
Hi Curtis You just need to insert a start & endtime to the code.... so it would like this.... Inputs: FastLength(10), SlowLength(20), StartTime(0930),EndTime( 1600 ); Vars: FastAvg(0),SlowAvg(0); FastAvg = jTHMA(Close,FastLength); SlowAvg = jTHMA(Close,SlowLength); If Time > StartTime and Time < EndTime then begin If FastAvg crosses above SlowAvg then buy 100 shares next bar at market; If FastAvg crosses below SlowAvg then sellshort 100 shares next bar at market; end; SetProfitTarget(1000); SetStopLoss( 100); SetExitOnClose; With regards to changing the type of moving average, yes just replace the jTHMA with xaverage for EMA or average for SMA. Hope this helps Blu-Ray
-
Hi Curtis The code will work on any timeframe, just insert the strategy onto the relevant chart and it will work. There's no need to use the word "end" on that code, you only use the word end if the true/ false condition is to specify more than one outcome and then you would have to use the word "begin" as well. Here's an example..... This is to specify only one outcome.... to plot something If FastAvg crosses above SlowAvg then Plot1(High,"Long"); _______________________________________________ This is to specify two outcomes... to plot & also to alert. If FastAvg crosses above SlowAvg then begin Plot1(High,"Long"); Alert("CrossOver Long"); end; Hope this helps Blu-Ray
-
Curtis You mention you would like to displace 1,2 or 3...... the displace feature is only affected on where to plot the lines..... the actual real time values are the same, all the displace feature does is move the lines back x amount of bars. With regards to your strategy, here's a code that should get you started... Inputs: FastLength(10), SlowLength(20); Vars: FastAvg(0),SlowAvg(0); FastAvg = jTHMA(Close,FastLength); SlowAvg = jTHMA(Close,SlowLength); If FastAvg crosses above SlowAvg then buy 100 shares next bar at market; If FastAvg crosses below SlowAvg then sellshort 100 shares next bar at market; SetProfitTarget(1000); SetStopLoss( 100); Hope this helps Blu-Ray
-
I think the best thing to do is to read as much material as possible ( and there's thousands of it freely available ).... see what's best for you. You have to find what's comfortable for yourself, paper trade a system for a while, see if it suits you and go from there. Just don't get sucked into buying this indicator or that system from whoever just because they say it's great..... and this leads me to the old and well used question........ If you had a winning system ( as easy as they say ) ..... would you sell it? Of course not. Cheers Blu-Ray
-
Check out the " Various Indicators " thread in the indicator section...... I coded up a lot of their indicators... FOR FREE ! So save your money, yes they look great on PBF's website with red & green buy signals showing big easy moves, because the charts are HANDPICKED..... see how they cope in choppy periods and you'll find out the hard way that it's a totally different story. So to sum it all up........Keep your hand in your pocket ! Hope this helps Blu-Ray
-
Can Someone Tell Me How to Get an Indicator to Stop Plotting
Blu-Ray replied to shortski's topic in Coding Forum
If they've supplied the functions for their proprietry indicators to enable you to code from them...... then you need to know the actual values for what triggers a green and red signal..... and then and only then can we hopefully get somewhere. As even your code above clearly shows that it's only plotting at level zero...... confirming the actual value of the indicators are a lot different. An example of what I mean.... here's a simple code to show you if price is above or below a moving average..... Inputs: Length (10); Vars: Avg(0); Avg = average(Close,Length); If Close > Avg then Plot1(0,"Avg",Green) else Plot1(0,"Avg",Red) ; So as you can see in the above code..... it's plotting at the level of zero, but the actual trigger is alot different..... for example.. close price is 828.5 and the Avg is 826.75. So to sum it up...... you need to know the trigger values. Hope this helps Blu-Ray -
Can Someone Tell Me How to Get an Indicator to Stop Plotting
Blu-Ray replied to shortski's topic in Coding Forum
Thanks for the pic. Looking at the chart, the ThreeLineBreak, doesn't have a value of 1 & -1, it seems to have a value the same as price. Also the OscillatorDivergence.... this isn't the correct values.... all someone's done here is code it so that it plots at zero if certain conditions are met within the OscillatorDivergence, for example .... if A + B = C then plot1(0,"Divergence", Green) If D + E = F then plot1(0,"Divergence", Red) So although it's plotting at zero.... the actual values and conditions of the indicator are different. Hope this helps Blu-Ray -
Can Someone Tell Me How to Get an Indicator to Stop Plotting
Blu-Ray replied to shortski's topic in Coding Forum
Regarding your ThreelineBreak Function ...... it's possible that ( as with some functions ) that it's value = -1 when the condition is false.... so could you make up an indicator and insert this code then post a pic. Plot1(ThreeLineBreak, "ThreeLineBreak"); Also you're saying the Oscillator gives a return of 0 and changes color to either red or green..... this is incorrect as it's only set to plot at zero.... the actual figure will be different......... ( this could also be the case with the ThreeLineBreak ) Again if you can post a chart with ONLY these two indicators on... then we'll hopefully get somewhere. Cheers Blu-Ray -
Can Someone Tell Me How to Get an Indicator to Stop Plotting
Blu-Ray replied to shortski's topic in Coding Forum
Do me a favour, your screenshot looks a little confusing.... post a screenshot of just the two indicators on it that you're trying to combine. Also.... What's the full code... as in value3 just says threelinebreak..... so what's the threelinebreak made up of. Also... in your code... if value2 & value3 = 0 then both conditions are true.. Post a new pic and some details and I'll take a look. Cheers Blu-Ray -
Yes, I felt the same way, I'm glad James is on the ball and has responded by removing the function. Cheers Blu-Ray
-
No Problem, glad to be of help Cheers Blu-Ray
-
Sure, just modify these lines : If Time >= EndTime then begin <<<<<<< Delete this line Plot1(HH,"HighestHigh"); Plot2(LL,"LowestLow"); end <<<<<<< Delete this line Hope this helps Blu-Ray
-
No Probs, here you go : Inputs: StartTime(0933), { you'll have to use the closing time of the bar } EndTime(1030); vars: HH(0),LL(0); If Time =StartTime then begin HH=High; LL=Low; end; If Time > StartTime and Time <= EndTime then begin If High > HH then HH = High; If Low < LL then LL = Low; end; If Time >= EndTime then begin Plot1(HH,"HighestHigh"); Plot2(LL,"LowestLow"); end; A little tip....... if you only want it to plot once rather than every bar after the end time, then use this line "If Time = EndTime then begin...." Hope this helps Blu-Ray
-
So... are you after a dot to plot for the high & low of the day (RTH hours only ) .... or..... to plot a dot for the high & low of the bar for the specific time you enter ?
-
LOL !!...... excellent mate, I like it. :rofl:
-
Kelly I'm not being funny or anything, but I just pressed the search button, typed in marketprofile and sure enough there's a thread called marketprofile.eld... it took me approx 10 seconds. Don't take this as getting at you, but there is too many people here, who don't use a simple facility called " Search ". Since I'm feeling kind and like your polite reply, here's the link. http://www.traderslaboratory.com/forums/f6/marketprofile-eld-3198.html#post28023 Hope this helps Blu-Ray
-
it's on this forum, if you use the " Search " facility, you'll find it there. Hope this helps Blu-Ray
-
It looks very interesting, would you mind posting all the indicators you're using then we can all follow along. Cheers Blu-Ray