JustUncleL

[Autoview][Alerts]Dual MA Ribbons R0.12 by JustUncleL

צפיות ‎4816‎
489
4816 25
Sorry I have had trouble getting the TradingView to point to the "Alerts" script instead of the "Backtest".

This is the Alerts part of this pair of Scripts. This part creates alerts to be picked up by the Chrome Add-on .
Jun 09
הערות שחרור: Resolve Issues
  • Resolve issue with Orange Close alerts not showing up in the TradingView alarm notifications when using Candlestick Charts.
  • Resolve issue with multiple Long/Short signals before Close by better use of the "tradeState" engine to keep control. This also made some of the Risk Management Code simpler.
Jun 17
הערות שחרור: Update Docs, Redesigned TSL for easier reading

This is an implementation of a strategy based on two MA Ribbon, a Fast Ribbon and a Slow Ribbon. The strategy revolves around a pair of scripts: to generate alerts signals for Autoview and for Backtesting, to tune your settings.

Trade Management options:

  • Option to specify a Strategy start and end time script only.
  • Trailing Stop Level, TSL (as % of price), activated on open trade
  • Target Profit Level, TP (as % of price)
  • Trailing Profit Level, TTP (as % of price below/above TP), activated on price passing TP Level
  • Stop Loss Level, SL (as % of price)
  • LONG green triangles and SHORT dark red triangles
Trade Order closed colour coded Labels:
> Dark Red = Stop Loss Hit
> Green = Target Profit Hit
> Purple = Trailing Stop Hit
> Orange = Opposite (Sell) Order Close

Trade Management Indication:
  • TSL = Fuschia solid stepping line
  • TP = Lime '+' line
  • TTP = Black solid stepping Line.
  • SL = Red '+' line
Dealing With Renko Charts:
  • If you choose to use Renko charts, make sure you have enabled the "IS This a RENKO Chart" option, (I have not so far found a way to Detect the type of chart is running).
  • If you want non-repainting Renko charts you MUST use TRADITIONAL Renko Bricks. This type of brick is fixed and will not change size.
  • Also use Renko bricks with WICKS DISABLED. Wicks are not part of Renko, the whole idea of using Renko bricks is not to see the wick noise.
  • Set you chart Time Frame to the lowest possible one that will build enough bricks to give a reasonable history, start at 1min TimeFrame. Renko bricks are not dependent on time, they represent a movement in price. But the chart candlestick data is used to create the bricks, so lower TF gives more accurate Brick creation.
  • You want to size your bricks to divide the pair price by 500, so for ETHBTC the price is say 0.0805 then your Renko Brick size should be about 0.0805/500 = 0.0002 (round up).
  • You may find there is some slippage in value, but this can be accounted for in the Backtest by setting your commission a bit higher, for example I use 0.2 - 0.3 for Binance.

Autoview alert syntax:
----------------------------
NOTE: This assumes you are trading coins BUY and SELL orders on the Binance Exchange
WARNING***Only use Autoview to automate a strategy after you've sufficiently backtested and forward tested the strategy.
You can learn more about the syntax here http://autoview.with.pink/#syntax and you can watch this video here: https://www.youtube.com/watch?v=epN5Tjinuxw
  • For the trade opens you will want to trigger BUY orders on LONGS (eg ETHBTC) with alert option "Once Per Bar Close" and SELL orders on SHORTS (eg BTCUSDT)
    > b=buy q=0.0011 e=binance s=ethbtc u=currency t=market ( LONG )
    > or b=sell q=0.0011 e=binance s=btcusdt t=market ( SHORT )
  • For the trade closes you will want to trigger these alerts on condition with alert option "Once Per Bar" to get the quickest close. "Once per Bar Close" can also be used. (NOTE: with Renko you can only use "Once Per Bar Close" option)
    > b=sell q=99% e=binance s=ethbtc t=market ( CLOSE LONGS )
    > or b=buy q=99% e=binance s=btcusdt u=currency t=market ( CLOSE SHORTS )
NOTE: Most of my testing was conducted on Renko Charts, I do not have any optimised settings for normal Candlestick charts, I have left that for fellow Traders to discover.
הסר מסקריפטים מועדפים הוסף לסקריפטים מועדפים
JustUncleL
Hi Such a shame the buy/sell does not trigger alarms in TV... Any one who can fix it ?
השב
@Kirk65, I had no problem during testing, I will retest. In the meantime you could try it without the

and (barstate.isconfirmed or barstate.ishistory)

clause on lines 365 and 366.
השב
Kirk65 JustUncleL
@JustUncleL, do you mean just comment line 365 and 366 or delete barstate.isconfirmed or barstate.ishistory
השב
@Kirk65, Actually, don't change anything, see my next comment.
השב
@Kirk65, Are you using "Once per Bar Close" option on the LONG/SHORT alarm parameters?
השב
Kirk65 JustUncleL
@JustUncleL, No i use "Once per bar"
השב
@Kirk65, Must use "Once per Bar Close" for the LONG/SHORT alarms. That's probably why you don't get any alarms.
השב
Kirk65 JustUncleL
@JustUncleL, okay... I deleted barstate.isconfirmed or barstate.ishistory in line 365-366 and it works now :-)
השב
@Kirk65, I suggest putting that clause back. It was put there to prevent repainting and possible multiple signals, all my testing included that clause. Also you must use "Once Per Bar Close" on LONG/SHORT alarms or else you will get a repaint issue.
השב
Kirk65 JustUncleL
@JustUncleL, Thanks for the advice.. Love your script. :-)
השב
בית סורק מניות סורק מט"ח סורק מטבעות-קריפטו יומן כלכלי סדרות איך זה עובד‏ תכונות גרף מחירון חוקי הבית מנהלים כלים לאתרים וברוקרים יישומונים פתרונות גרפיים ספריית גרפים קלי משקל מרכז תמיכה הפנה חבר בקשת פונקציה בלוג וחדשות טוויטר‏
פרופיל הגדרות פרופיל חשבון וחיוב הפנה חבר לשוניות התמיכה שלי מרכז תמיכה רעיונות שפורסמו עוקבים עוקב אחרי... הודעות פרטיות צ'אט התנתק