EasyLanguage Price Action PaintBar Study - futures io

# Discussion in EasyLanguage Programming

Updated by Bacon
Top Posters
1. looks_one Big Mike with 2 posts (4 thanks)
2. looks_two aslan with 2 posts (1 thanks)
3. looks_3 Quick Summary with 1 posts (0 thanks)
4. looks_4 Bacon with 1 posts (3 thanks)
1. trending_up 5,907 views
2. thumb_up 8 thanks given
3. group 6 followers
1. forum 5 replies
2. attach_file 0 attachments

 Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
 Genuine reviews from real traders, not fake reviews from stealth vendors Quality education from leading professional traders We are a friendly, helpful, and positive community We do not tolerate rude behavior, trolling, or vendors advertising in posts We are here to help, just let us know what you need You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple. -- Big Mike, Site Administrator (If you already have an account, login at the top of the page)

# EasyLanguage Price Action PaintBar Study

Platform: My own custom solution

Posts: 49,037 since Jun 2009

I thought I would start working on a basic Price Action indicator for MultiCharts.

Here is a quick version I have so far. It colors HH + HL, LH + LL, and Bearish/Bullish Engulfing.

Code
 ``` ``` // Big Mike Trading https://futures.io // 17 April 2010 vars:     color(GetPlotColor(5));      color = GetPlotColor(5); if H > H[1] and L > L[1] then color = GetPlotColor(6); if H < H[1] and L < L[1] then color = GetPlotColor(7); if H <= H[1] and L >= L[1] then color = GetPlotColor(8); if H > H[1] and L < L[1] and C > C[1] then color = GetPlotColor(9); if H > H[1] and L < L[1] and C < C[1] then color = GetPlotColor(10); PlotPaintBar(H, L, O, C, "PriceAction", color); Plot5(C, "Neutral"); Plot6(C, "HH+HL"); Plot7(C, "LH+LL"); Plot8(C, "IB"); Plot9(C, "BullEng"); Plot10(C, "BearEng"); NoPlot(5); NoPlot(6); NoPlot(7); NoPlot(8); NoPlot(9); NoPlot(10);  ``` ```

Mike

 The following 4 users say Thank You to Big Mike for this post:

Can you help answer these questions
from other members on futures io?
 Indicator to help refine my methodTraders Hideout Horizontal Line IndicatorPlatforms and Indicators IB Bracker OrderPlatforms and Indicators Price Down, Volume Up, Open Interest DownTraders Hideout T​​​​​​radestation datafeed (real time and historical) to NT8NinjaTrader

in the last 7 days on futures io
 Legal question and need desperate help199 thanks FIO Journal Challenge - June 2020 w/SharkIndicators16 thanks OneUp Trader / MES Capital / FuturesProfile (the owner lies about his identity)10 thanks Any recommended CFD Brokers for USA based Traders?10 thanks Emini gap fill strategy data, books?8 thanks

Platform: Sierra Charts, ALT

Posts: 616 since Jan 2010

One little tweak: put the plots in a block that does not execute, then you don't need the noplots, and none of the statements ever execute, but you still get the plots in the configuration. Using CurrentBar = 0 is sneaky, but works.

Code
 ```if CurrentBar = 0 then begin // only here to set colors in the config Plot5(C, "Neutral"); Plot6(C, "HH+HL"); Plot7(C, "LH+LL"); Plot8(C, "IB"); Plot9(C, "BullEng"); Plot10(C, "BearEng"); end;```

 The following user says Thank You to aslan for this post:

Platform: My own custom solution

Posts: 49,037 since Jun 2009

aslan
One little tweak: put the plots in a block that does not execute, then you don't need the noplots, and none of the statements ever execute, but you still get the plots in the configuration. Using CurrentBar = 0 is sneaky, but works.

Code
 ```if CurrentBar = 0 then begin // only here to set colors in the config Plot5(C, "Neutral"); Plot6(C, "HH+HL"); Plot7(C, "LH+LL"); Plot8(C, "IB"); Plot9(C, "BullEng"); Plot10(C, "BearEng"); end;```

Good idea. Can also prefix it with once I believe.

Thx,
Mike

 (login for full post details) #5 (permalink) Elite Member Madison, WI   Experience: Advanced Platform: Sierra Charts, ALT Trading: ES     Posts: 616 since Jan 2010 Thanks: 351 given, 1,107 received Yes, once would work, except then you need the noplots since the plots will execute once.

3rd Rock

Experience: Intermediate
Platform: Other

Posts: 204 since Mar 2010

@Mike,

Good idea for an indicator.

Not sure what level of detail you're aiming for, but here are a few ideas....

Code
 ```if O = C then color = GetPlotColor(11); if H[3] < H[2] and L[3] < L[2] and H[1] < H[2] and L[1] < L[2] and C < C[1] then color = GetPlotColor(12); if H[3] > H[2] and L[3] > L[2] and H[1] > H[2] and L[1] > L[2] and C > C[1] then color = GetPlotColor(13); if H[1] <= H[2] and L[1] >= L[2] and C > H[2] then color = GetPlotColor(14); if H[1] <= H[2] and L[1] >= L[2] and C < L[2] then color = GetPlotColor(15); Plot11(C, "Doji"); Plot12(C, "RevShort"); Plot13(C, "RevLong"); Plot14(C, "IB-BreakLong"); Plot15(C, "IB-BreakShort");```
Plots 12 thru 15 assume trade-plans that require the signal bar to close before becoming a valid trigger (painted).

These do not allow for trade-plans that only require the trigger be broken at anytime during the formation of the current bar. Will the code allow the painting of the current bar, based on breaking a trigger point, prior to the bar closing?

Something similar could be done for the break of the low of a Bearish Engulfing or of the high of a Bullish Engulfing.

If you aren't interested in painting trigger bars, then for the reversal pattern you could just paint the third bar of the three bar pattern....

Code
 ```if H[2] < H[1] and L[2] < L[1] and H < H[1] and L < L[1] then color = GetPlotColor(12); if H[2] > H[1] and L[2] > L[1] and H > H[1] and L > L[1] then color = GetPlotColor(13);```
Just random thoughts...

Bacon

 The following 3 users say Thank You to Bacon for this post:

 futures io > EasyLanguage Price Action PaintBar Study

April 18, 2010

Upcoming Webinars and Events

Aug 4

## Live Video Panel: Ask Me Anything w/Ironbeam Brokerage

Aug 6

 Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io All information is for educational use only and is not investment advice.There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts