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.


Sliding Range

Recommended Posts



Would anyone be kind enough the convert the mq4 formula for the

Sling Range into Tradestation Code

Hoping that you can oblige

Thank you in advance



//|                                              Rj_SlidingRange.mq4 |
//|                            Copyright © 2011,RJ Rjabkov Alexander |
//|                                                     rj-a@mail.ru |
#property copyright "Copyright © 2011,RJ Rjabkov Alexander"
#property link      "rj-a@mail.ru"

#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Aqua
#property indicator_color2 Red
#property indicator_color3 Aqua
#property indicator_color4 Red
#property indicator_width1 1
#property indicator_width2 1
#property indicator_width3 2
#property indicator_width4 2
#property indicator_style1 2
#property indicator_style2 2

extern int CalcPeriodRange  = 5;

double UpperLimit[];
double LowerLimit[];
double AwlUpper[];
double AwlLower[];
double Current[];

int init() {
 SetIndexBuffer(0, UpperLimit);
 SetIndexBuffer(1, LowerLimit);
 SetIndexBuffer(2, AwlUpper);
 SetIndexBuffer(3, AwlLower);
 SetIndexBuffer(4, Current);
 SetIndexStyle(0, DRAW_LINE);
 SetIndexStyle(1, DRAW_LINE);
 SetIndexStyle(2, DRAW_LINE);
 SetIndexStyle(3, DRAW_LINE);

int deinit() {return(0);}

int start() {
 int i, cb;
 int counted_bars = IndicatorCounted();
 if (counted_bars < 0) return(-1); 
 if (counted_bars > 0) counted_bars--;

 while(cb>=0) {
   double b1=0, b2=0;
   while(i>=cb) {
     b1 += High[iHighest(NULL, 0, MODE_HIGH, CalcPeriodRange, i)];
     b2 += Low[iLowest(NULL, 0, MODE_LOW, CalcPeriodRange, i)];
   Current[cb]=NormalizeDouble((UpperLimit[cb]+LowerLimit[cb])/2, 5);
   if(Current[cb]>Current[cb+1]) {AwlUpper[cb]=Current[cb]; AwlUpper[cb+1]=Current[cb+1];}
   if(Current[cb]<Current[cb+1]) {AwlLower[cb]=Current[cb]; AwlLower[cb+1]=Current[cb+1];}
   if(Current[cb]==Current[cb+1] && AwlLower[cb+1]!=EMPTY_VALUE) {AwlLower[cb]=Current[cb];}
   if(Current[cb]==Current[cb+1] && AwlUpper[cb+1]!=EMPTY_VALUE) {AwlUpper[cb]=Current[cb];}

Share this post

Link to post
Share on other sites






if MidLine >= MidLine[1] then setplotcolor(1,Cyan) else setplotcolor(1,red);




Share this post

Link to post
Share on other sites
Look and works like junk tried on my Hotforex platform and once again got a proof that there is no better than simple but effective price action.


Some end of year thoughts on trading using priceseries *


Consciously, ‘PAv’ traders are categorically NOT able to trade with oscillators (/ indicators). (Note that ‘consciously’ part - because unconsciously every single one of them is creating and using ‘indicators’ in the background.)


Real oscillators traders can categorically NOT (consciously) trade with PA. (Note that ‘consciously’ part - because unconsciously every single one of them is attempting to process PA on the fly.)


Point is - Both modes are always going / functioning.


“Find your own way” zdo. Find out which one you are best suited for, make that one dominant and develop it that fully... Let the other one be recessive.


If you’re a PA trader, don’t fool yourself into total rejection of oscillators. And by the same token, if you’re an oscillators trader, don’t be swayed by the preaching of PA traders to completely exclude oscillators trading. Find out which one you are best suited for, develop that fully... and then you might be free to consciously include and accommodate certain aspects from the other one.




PA traders do notice and repeatedly announce an important ‘weakness’ of indicators. Stock indicators don’t ‘work’. :rofl:

Yep, statistically out the box at best they produce ( with ‘costs, a slightly negative) wash... ie the ‘sample runs’ where they outperform do not offset the ‘sample runs’ where they underperform, etc. **



The key word here is “stock”.


There are (only?) three ways to overcome this weakness of stock indicators.

1 ‘Skew’ the indicator calculations to match the ‘slope’ (and travel, etc) of the auctions.

2 Learn to ‘wetware skew’ the reading of the indicator to match the ‘slope’ (etc) of the auctions.

3 Type the auctions to know when and when NOT to apply an indicator


ie You got to know when and how to "harm squiggly lines" (sorry TRO for appropriating your apt phrase... :) )



Wishing all ya'll wonderful holidays and a happy solstice in exactly one minute !!!!







*instead of non price / fundamental / narrative information


**:haha: Unfortunately, PA traders can't go about as readily acknowledging the equivalent real world statistics of 'out the box' PA... ie don't get it that both modes are always going / functioning.

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.

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.

  • Topics

  • Posts

    • Latest Binary Options No Deposit Bonuses in 2020The possibility of trading without a deposit into your account is a rarity today. Binary options no deposit bonus brokers provide an opportunity of trading even without risking your own money, simply for free. This is a very interesting solution that allows to significantly expand the number of potential market participants. On our Website, we tried to build the Latest Binary Options No Deposit Bonuses in 2020 List! This sort of bonus is really awesome, beginners love to get it. This permits traders to utilize the live account trading with a good trading platform and the advantage is there is no risk.How to get the no deposit bonuses?Getting binary options no deposit bonus is very simple:Find out the broker who providing binary options no deposit bonusSign up a new accountVerify your account if required to get bonusThe broker will give you a welcome bonus (free real money without deposit)Generally, it process instantly but it can take a couple of hours. Anyhow, if you don’t get a bonus, you may contact the broker support. Binary options no deposit bonus brokers set its size preferably in the range from 10 to 50 dollars for free – this amount is sufficient for work with options for the first time. Please note that you can get these funds free only one time, so you should use them with extreme caution. All Binary options no deposit bonus brokers offer traders an excellent opportunity to assess the prospects of work on the market without investing their own funds. The practice of using these incentives is becoming increasingly popular, so our table is regularly updated with new companies with a free bonus. There are lots of similarities between the binary options demo trading and no deposit bonus. You have exactly the identical capability to encounter live market trading requirements in no risk, letting you develop your own trading techniques without risk and pressure.If you will choose one from our recommended brokers, you can start trading binary options without deposit using binary options no deposit bonuses: PocketOption Broker – USA, EU, and World Wide Customers Welcome – 50$ Real Money Binary Options No Deposit Bonus Binary.com – this broker do not accept USA & EU customers – 20$ Free Real Money Binary Options No Deposit Bonus CryptoBO Broker – 10,000 Satoshi Binary Options No Deposit Bonus (Bitcoin Deposit Accepted) Visit our dedicated website for More Binary Options No Deposit BonusesLatest Binary Options No Deposit Bonuses in 2020
    • GBPUSD Retreats Beneath The Level At 1.31 Amid Greenback’s Resilience GBPUSD Price Analysis – January 26 GBPUSD is trading beneath the 1.31 level after reaching a new high of 1.3172, as the dollar’s resilience did not allow the pair to gain momentum. The US dollar is gaining strength in all directions. Key Levels Resistance Levels: 1.3600, 1.3514, 1.3280 Support Levels: 1.3000, 1.2582, 1.1958 GBPUSD Long term Trend: Bullish GBPUSD recently recovered to the level of 1.3172 but has since lost momentum. This week’s initial bias is neutral. On the other hand, in the past, the level of 1.3172 may give way to the resistance level of 1.3280. A breakdown there may approach the test at 1.3514 level. On the other hand, beneath the level of 1.3050, repeated testing of the recovery part of the level of 1.1958 to 1.3514 at 1.2900 levels may occur. GBPUSD Short term Trend: Bullish Estimated intraday bias in GBPUSD may initially become neutral with a temporary top already structured at 1.3172 level. Further growth is moderately favored, while the immediate support level of 1.3050 remains unchanged. The Fx pair remains bullish, trading past the level of 1.3072, a critical barrier is found at levels of 1.3118 and 1.3172. Besides, the Fx pair remains bearish, trading past the 1.3050 level, critical support has been found at 1.3000 and 1.2970 level. Note: Learn2Trade.com is not a financial advisor. Do your research before investing your funds in any financial asset or presented product or event. We are not responsible for your investing results. Source: https://learn2.trade 
    • Bitcoin (BTC) Shows Strength, Sustains Hope On Uptrend Key Resistance Zones: $10,000, $11,000, $12,000 Key Support Zones: $7, 000, $6, 000, $5,000 BTC/USD Long-term Trend: Ranging After the rejection of  price at $9,200, the downward move was extended to a low of $8,250. Analysts were of the opinion that Bitcoin will bounce if price falls and tests the low of $8,250. From every indication, Bitcoin is making a solid upward move as the coin approaches the overhead resistance. Our bullish expectation is that the price will break the resistances of $8,800 and $9,200. Then the same momentum will be extended to the $10,000 price level. However, the bears may want to put up a fight to defend the $9,200 resistance. If the bears defend successfully, Bitcoin will be compelled to a sideways move. Daily Chart Indicators Reading: The 21-day SMA and the 50-day SMA are pointing northward indicating the upward move. The 21-day SMA acts as a support to Bitcoin. Meanwhile, MACD provides a buy signal for Bitcoin as the MACD line and the signal are above the zero lines. BTC/USD Medium-term Trend: Bullish On the 4-hour chart, the price breaks the support line of the horizontal channel. Later Bitcoin finds support at $8,250 low. The $8,250 low was well supported by the bulls as the coin makes a bullish move. The price is approaching the resistance at $8,800. If successful above $8,800, the price will rally above $9,200. 4-hour Chart Indicators Reading Bitcoin has risen to level 66 of the daily Relative Strength Index period 14. This signifies that the coin is in a bullish trend zone. However, if the RSI rises above level 70, Bitcoin will be said to have reached the overbought region of the market. Then we may experience a fall in BTC price. General Outlook for Bitcoin (BTC) The upward move in the last 24 hours is a positive development as Bitcoin bounces at a low of $8,250. All the indicators are in the positive direction of the coin. However, the RSI is level 68 indicating that the coin is approaching the overbought region. In other words, the upward move may soon be interrupted. After a retracement, the coin will resume its upward move. BTC Trade Signal Instrument: BTC/USD Order: Buy Entry price: $8,738 Stop: $8,500 Target: $9,200 Source: https://learn2.trade 
    • goodcalculators.com   Profit Calculator - Good Calculators   2 minutes 494668b4c0ef4d25bda4e75c27de2817trueBCSI-AC-c02582709689167bfalseBCSI-ACP-21ab91e8d10cf24cfalseBCSI-CS-5b04408683bfa51afalsePHPSESSIDA unique identifier used to preserve states across pages.false__cfduidUsed by the content network, Cloudflare, to identify trusted web traffic.false__utmtUsed to throttle the speed of requests to the server.false__utmt_eUsed to throttle the speed of requests to the server.false__utmt_fUsed to throttle the speed of requests to the server.falseactive_template::124911falsecookieconsent_dismissedUsed to track closure of a cookie consent dialog.falseezCMPCookieConsentUsed by the analytics and personalization company, Ezoic, to track when a user consents to cookies.falseez_pub_siteUsed by the analytics and personalization company, Ezoic, to only show the site with Ezoic's features enabled. falseez_rdrUsed by the analytics and personalization company, Ezoic, to track redirects.falseez_rdr_countUsed by the analytics and personalization company, Ezoic, to track redirectsfalseezovuuid_124911falseezovuuidtime_124911falsefreewheel-detected-bandwidthUsed to check and record how fast your internet connection isfalsesession_depthUsed to track the number of pages you visit in a session on this site.false
    • Every time you post anal. you will have my full support  Love your stuff man!!!! good forex profits everybody
  • Create New...

Important Information

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