Jump to content

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.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

traderlu

Scalper Buys/Sell Replica

Recommended Posts

Traderlu - thanks for your help on this indicator. I could use some your help on how should the code be written if I wanted to use it in a Radar screen on Tradestation? i changed the colors so the bars a blue for a short and white for a long...I am assuming this is the same code you have posted..

Thanks for your help!

 

The code is:

 

{Scalper Buys and Sells 7/18/2007

Written by Luis Gomez

inspired by John Carters "Mastering the Trade"

}

 

inputs:

buyColor(white),

sellColor(blue),

width(3);

variables:

highBarsAgo(1),

possibleHighBarsAgo(1),

possibleHigh(-2),

hightoBeat(-1),

barsSincePaint(1),

lowBarsAgo(1),

possibleLowBarsAgo(1),

possibleLow(10000001),

lowtoBeat(10000000),

triggerPriceSell(-1),

triggerPriceBuy(1000000),

trend(1),

_UP(1),

_DOWN(-1),

_ON(1),

_OFF(-1);

 

 

//***************************************************

//****** Find and plot the highest swing high *******

//***************************************************

 

if trend = _UP then begin

if swingHighBar(1,H,2,barsSincePaint+2) > -1 then begin

possibleHighBarsAgo = swingHighBar(1,H,2,barsSincePaint+2);

possibleHigh = H[possibleHighBarsAgo];

end;

 

if possibleHigh >= hightoBeat then begin

highBarsAgo = possibleHighBarsAgo;

hightoBeat = possibleHigh;

triggerPriceSell = L[HighBarsAgo - 1];

end;

 

if C < triggerPriceSell and

highest(high,highBarsAgo) < hightoBeat then begin

plotpb[highBarsAgo](H[highBarsAgo],L[highBarsAgo],"",sellColor);

alert("Scalper Sell");

trend = _DOWN;

barsSincePaint = highBarsAgo-1;

hightoBeat = -1;

lowtoBeat = 10000000;

triggerPriceBuy = 10000000;

triggerPriceSell = -1;

highBarsAgo = 1;

possibleHigh = -2;

end;

 

end;

 

//***************************************************

//****** Find and plot the lowest swing low *********

//***************************************************

 

if trend = _DOWN then begin

if swingLowBar(1,L,2,barsSincePaint+2) > -1 then begin

possibleLowBarsAgo = swingLowBar(1,L,2,barsSincePaint+2);

possibleLow = L[possibleLowBarsAgo];

end;

 

if possibleLow <= lowtoBeat then begin

lowBarsAgo = possibleLowBarsAgo;

lowtoBeat = possibleLow;

triggerPriceBuy = H[LowBarsAgo - 1];

end;

 

if C > triggerPriceBuy and

lowest(L,lowBarsAgo) > lowtoBeat then begin

plotpb[lowBarsAgo](H[lowBarsAgo],L[lowBarsAgo],"",buyColor);

alert("Scalper Buy");

trend = _UP;

barsSincePaint = lowBarsAgo-1;

possibleLow = 10000001;

lowtoBeat = 10000000;

hightoBeat = -1;

triggerPriceBuy = 10000000;

triggerPriceSell = -1;

lowBarsAgo = 1;

end;

 

end;

 

barsSincePaint = barsSincePaint+1;

if trend = _UP then highBarsAgo = highBarsAgo + 1;

if trend = _DOWN then lowBarsAgo = lowBarsAgo + 1;

setPlotWidth(1,width);

 

Code had a few problems because not in the code box.Here is the eld of the corrections in this post.

SCALPER BUYS AND SELLS.ELD

5aa71202a9376_ScalperBuysandSells10-4-13.thumb.jpg.02cfcec74115e5f18021b8397ae65893.jpg

Share this post


Link to post
Share on other sites
Hi....

 

Can we have this indicator for Metatrader.....mt4 or mt5?

 

am a trader from India.

 

I'd be really thankful if you do so :)

 

thanks in advance.

 

off course you can use it. but it's an old thread, there's a chance this indicator wouldn't works well with new mt4 build.

Share this post


Link to post
Share on other sites
Kindly post ShowMe version for Candlestick

 

:helloooo:

 

Developer Last Online: Jun 2009

--------------------------------------------------------------------------------

Platform: Unknown

Rating: (4 votes - 5.00 average)

Released: 07-27-2007

Last Update: Never

Installs: 0

 

 

No support by the author.

 

ravidevt,

 

Looks like you might have to write your own ShowMe version for Candlestick

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.