DaneSchell

Simple Moving Average Cross

DaneSchell מעודכן   
The script uses 3 simple moving averages that you can define (SMA Top, SMA Mid, SMA Long).

Once the SMA Top is above the SMA Mid and the SMA Mid is above the SMA Top a long position is entered.

Once the SMA Top is below the SMA Mid and the SMA Mid is below the SMA Top a short position is entered.

You may define how long before these positions are entered by adjusting the bars in the Inputs section.

A setting of 0 will enter a position as soon as the conditions are met,
whereas a setting of 5 will wait 5 bars after the conditions are met before entering the positions.
הערות שחרור:
UPDATING DESCRIPTION / TYPOS

The script uses 3 simple moving averages that you can define ( SMA Top, SMA Mid, SMA Low).

Once the SMA Top is above the SMA Mid and the SMA Mid is above the SMA Low a long position is entered.

Once the SMA Top is below the SMA Mid and the SMA Mid is below the SMA Low a short position is entered.

You may define how long before these positions are entered by adjusting the bars in the Inputs section.

A setting of 0 will enter a position as soon as the conditions are met,
whereas a setting of 5 will wait 5 bars after the conditions are met before entering the positions.
הערות שחרור:
Updated the when to close the position as it was improperly set.
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?