Skip to main content

1 hour stoch for Amibroker (AFL)

siddhisagar over 15 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 2)
  • Tags:
    oscillator, trading system, amibroker

Hello,

I have made a few changed to the stoch indicator so that it can produce buy sell arrows for a day trader with a one hour time frame.

Warm regards
Siddhisagar

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("stochastic 1 hourly");
TimeFrameSet(1*inHourly);
slow=StochD(5,3,3);
fast=StochK(5,3);
TimeFrameRestore();
_SECTION_END();

Buy=TimeFrameExpand(slow, 1*inHourly) < TimeFrameExpand(fast, 1*inHourly);
Sell=TimeFrameExpand(slow, 1*inHourly) > TimeFrameExpand(fast, 1*inHourly);

Plot( slow , "slow#1", colorDarkYellow, styleLine );
Plot( fast , "fast#2", colorRed, styleLine);

PlotShapes((Buy ) * shapeUpArrow, colorGreen); 
PlotShapes((Sell ) * shapeDownArrow,colorRed );

0 comments

Leave Comment

Please login here to leave a comment.