ورود/ثبت‌نام
Trendoscope

Trendoscope

@t_Trendoscope

تعداد دنبال کننده:0
تاریخ عضویت :۱۴۰۰/۸/۷
شبکه اجتماعی تریدر :refrence
ارزدیجیتال
9955
-269
رتبه بین 44533 تریدر
0%
بازدهی 6 ماه اخیر تریدر
(میانگین بازدهی 6 ماه اخیر 100 تریدر برتر :23.7%)
(بازدهی 6 ماه اخیر BTC :11.5%)
قدرت تحلیل
1.5
38تعداد پیام

تریدر چه نمادی را توصیه به خرید کرده؟

سابقه خرید

فیلتر:
معامله سودآور
معامله ضررده

تخمین بازدهی ماه به ماه تریدر

سال:

پیام های تریدر

فیلتر

نوع سیگنال

Trendoscope
Trendoscope
رتبه: 9955
1.5
BTC،تکنیکال،Trendoscope

سلام به همه، در این ویدیو، در مورد نحوه استفاده از ابزار Pine Screener در TradingView صحبت کرده‌ایم. ما از اندیکاتور Divergence Screener برای این نمایش استفاده می‌کنیم و سهامی را که دارای واگرایی صعودی هستند، غربال می‌کنیم. به طور خلاصه، مراحل به شرح زیر است: 🎯 از Stock Screener برای ایجاد لیست تماشایی با کمتر از 1000 نماد استفاده کنید 🎯 اندیکاتوری را که می‌خواهید در Pine Screener استفاده کنید، به موارد دلخواه خود اضافه کنید. 🎯 از طریق منوی TradingView Screener می‌توانید به Pine Screener دسترسی پیدا کنید یا به سادگی روی link tradingview.com/pine-screener/ کلیک کنید. 🎯 لیست تماشا و اندیکاتور را به Pine Screener اضافه کنید و بازه زمانی و تنظیمات اندیکاتور را تنظیم کنید 🎯 معیارهای اسکن را انتخاب کرده و دکمه اسکن را فشار دهید.

ترجمه شده از: English
نمایش اصل پیام
نوع سیگنال: خنثی
تایم فریم:
1 روز
قیمت لحظه انتشار:
‎$۱۰۸٬۱۳۱٫۸۲
اشتراک گذاری
Trendoscope
Trendoscope
رتبه: 9955
1.5
BTC،تکنیکال،Trendoscope

Position sizing is one of the most important aspects in risk management for traders. Proper position sizing helps manage the risk effectively by maximizing profits and limiting the losses. In this publication, we will explore popular position sizing strategies and how to implement them in pinescript strategies🎲 Importance of Position Sizing in TradingLet's take an example to demonstrate the importance of position sizing. You have a very good strategy that gives you win on 70% of the times with risk reward of 1:1. If you start trading with this strategy with all your funds tied into a single trade, you have the risk of losing most of your fund in the first few trades and even with 70% win rate at later point of time, you may not be able to recoup the losses. In such scenarios, intelligent position sizing based on the events will help minimize the loss. In this tutorial, let us discuss some of those methods along with appropriate scenarios where that can be used.🎲 Position Sizing Strategies Available in Tradingview Strategy Implementation🎯 Fixed dollar amount position sizing In this method, trader allocate a fixed value of X per trade. Though this method is simple, there are few drawbacks Does not account for varying equity based on the trade outcomes Does not account for varying risk based on the volatility of the instrument🎯 Fixed Percentage of Equity In this method, percent of equity is used as position size for every trade. This method is also simple and slightly better than the Fixed dollar amount position sizing. However, there is still a risk of not accounting for volatility of the instrument for position sizing.In tradingview strategies, you can find the position sizing settings in the properties section.In both cases, Pinescript code for the entry does not need to specify quantity explicitly, as they will be taken care by the framework.Pine Script®if(longEntry) strategy.entry('long', strategy.long) if(shortEntry) strategy.entry('short', strategy.short)🎲 Advanced Position Sizing StrategiesThere are not directly supported in Tradingview/Pinescript - however, they can be programmed.🎯 Fixed Fractional Method The Fixed Fractional Method is similar to the fixed percentage of equity method/fixed dollar amount positioning method, but it takes into account the amount of risk on each trade and calculate the position size on that basis. This method calculates position size based on the trader’s risk tolerance, factoring in stop-loss levels and account equity. Due to this, the trader can use any instrument and any timeframe with any volatility with fixed risk position. This means, the quantity of overall trade may vary, but the risk will remain constant.Example.Let's say you have 1000 USD with you and you want to trade BTCUSD with entry price of 100000 and stop price of 80000 and target of 120000. You want to risk only 5% of your capital for this trade.Calculation will be done as follows.Risk per trade = 5% of 1000 = 50 USDRisk per quantity= (entry price - stop price) = 20000So, the quantity to be used for this trade is calculated byRiskQty = Risk Amount / Risk Per Quantity = 50 / 20000 = 0.0025 BTCTo implement the similar logic in Pinescript strategy by using the strategy order quantity as risk, we can use the following codePine Script®riskAmount = strategy.default_entry_qty(entryPrice)*entryPrice riskPerQty = math.abs(entryPrice-stopPrice) riskQty = riskAmount/riskPerQtyWith this, entry and exit conditions can be updated to as followsPine Script®if(longEntry) strategy.entry('long', strategy.long, riskQty, stop=entryPrice) strategy.exit('ExitLong', 'long', stop=stopPrice, limit=targetPrice) if(shortEntry) strategy.entry('short', strategy.short, riskQty, stop=entryPrice) strategy.exit('ExitShort', 'short', stop=stopPrice, limit=targetPrice)Expand 1 line🎯 Kelly Criterion Method The Kelly Criterion is a mathematical formula used to determine the optimal position size that maximizes the long-term growth of capital, considering both the probability of winning and the payoff ratio (risk-reward). It’s a more sophisticated method that balances risk and reward in an optimal way.Kelly Criterion method needs a consistent data on the expected win ratio. As and when the win ratio changes, the position sizing will adjust automatically.Formula is as followsf = W - L/Rf: Fraction of your capital to bet. W : Win RatioL : Loss Ratio (1-W)R : Risk Reward for the tradeLet's say, you have a strategy that provides 60% win ratio with risk reward of 1.5, then the calculation of position size in terms of percent will be as followsf = 0.6 - 0.4/1.5 = 0.33Pinescript equivalent of this calculation will bePine Script®riskReward = 2 factor = 0.1 winPercent = strategy.wintrades/(strategy.wintrades+strategy.losstrades) kkPercent = winPercent - (1-winPercent)/riskReward tradeAmount = strategy.equity * kkPercent * factor tradeQty = tradeAmount/entryPriceExpand 1 line🎲 High Risk Position Sizing StrategiesThese strategies are considered very high risk and high reward. These are also the strategies that need higher win ratio in order to work effectively. 🎯Martingale StrategyThe Martingale method is a progressive betting strategy where the position size is doubled after every loss. The goal is to recover all previous losses with a single win. The basic idea is that after a loss, you double the size of the next trade to make back the lost money (and make a profit equal to the original bet size).How it Works:If you lose a trade, you increase your position size on the next trade.You keep doubling the position size until you win.Once you win, you return to the original position size and start the process again.To implement martingale in Pine strategy, we would need to calculate the last consecutive losses before placing the trade. It can be done via following code.Pine Script®var consecutiveLosses = 0 if(ta.change(strategy.closedtrades) > 0) lastProfit = strategy.closedtrades.profit(strategy.closedtrades-1) consecutiveLosses := lastProfit > 0? 0 : consecutiveLosses + 1Quantity can be calculated using the number of consecutive losses Pine Script®qtyMultiplier = math.pow(2, consecutiveLosses) baseQty = 1 tradeQty = baseQty * qtyMultiplier🎯Paroli System (also known as the Reverse Martingale)The Paroli System is similar to the Anti-Martingale strategy but with more defined limits on how much you increase your position after each win. It's a progressive betting system where you increase your position after a win, but once you've won a set number of times, you reset to the original bet size.How it Works:Start with an initial bet.After each win, increase your bet by a predetermined amount (often doubling it).After a set number of wins (e.g., 3 wins in a row), reset to the original position size.To implement inverse martingale or Paroli system through pinescript, we need to first calculate consecutive wins.Pine Script®var consecutiveWins = 0 var maxLimit = 3 if(ta.change(strategy.closedtrades) > 0) lastProfit = strategy.closedtrades.profit(strategy.closedtrades-1) consecutiveWins := lastProfit > 0? consecutiveWins + 1 : 0 if(consecutiveWins >= maxLimit) consecutiveWins := 0Expand 2 linesThe quantity is then calculated using a similar formula as that of Martingale, but using consecutiveWinsPine Script®qtyMultiplier = math.pow(2, consecutiveWins) baseQty = 1 tradeQty = baseQty * qtyMultiplier🎯D'Alembert StrategyThe D'Alembert strategy is a more conservative progression method than Martingale. You increase your bet by one unit after a loss and decrease it by one unit after a win. This is a slow, incremental approach compared to the rapid growth of the Martingale system.How it Works:Start with a base bet (e.g., $1).After each loss, increase your bet by 1 unit.After each win, decrease your bet by 1 unit (but never go below the base bet).In order to find the position size on pinescript strategy, we can use following codePine Script®// Initial position initialposition = 1.0 var position = initialposition // Step to increase or decrease position step = 2 if(ta.change(strategy.closedtrades) > 0) lastProfit = strategy.closedtrades.profit(strategy.closedtrades-1) position := lastProfit > 0 ? math.max(initialposition, position-step) : position+stepExpand 3 linesConclusionPosition sizing is a crucial part of trading strategy that directly impacts your ability to manage risk and achieve long-term profitability. By selecting the appropriate position sizing method, traders can ensure they are taking on an acceptable level of risk while maximizing their potential rewards. The key to success lies in understanding each strategy, testing it, and applying it consistently to align with your risk tolerance and trading objectives.

ترجمه شده از: English
نمایش اصل پیام
نوع سیگنال: خنثی
تایم فریم:
1 روز
قیمت لحظه انتشار:
‎$۸۲٬۰۶۳٫۳۲
اشتراک گذاری
Trendoscope
Trendoscope
رتبه: 9955
1.5
BTC،تکنیکال،Trendoscope

We discussed identification and classification of different chart patterns and chart pattern extensions in our previous posts.Algorithmic Identification of Chart PatternsFlag and Pennant Chart PatternsIn this installment, we shift our focus towards the practical trading strategies applicable to a select group of these patterns. Acknowledging that a universal trading rule cannot apply to all patterns, we narrow our examination to those of the converging variety.We will specifically address the following converging patterns:Rising Wedge (Converging Type)Falling Wedge (Converging Type)Converging TriangleRising Triangle (Converging Type)Falling Triangle (Converging Type)This selection will guide our discussion on how to approach these patterns from a trading perspective.🎲 Historical Bias and General PerceptionEach pattern we've discussed carries a historical sentiment that is widely regarded as a guideline for trading. Before we delve into our specific trading strategies, it's crucial to understand these historical sentiments and the general market interpretations associated with them.🟡 The Dynamics of Contracting Wedge PatternsContracting Wedge patterns are typically indicative of the Elliott Wave Structure's diagonal waves, potentially marking either the beginning or conclusion of these waves. A contracting wedge within a leading diagonal may experience a brief retracement before the trend resumes. Conversely, if found in an ending diagonal, it could signal the termination of wave 5 or C, possibly hinting at a significant trend reversal.The prevailing view suggests that these patterns usually precede a short-term directional shift: Rising Wedges are seen as bearish signals, while Falling Wedges are interpreted as bullish. It's essential to consider the trend prior to the formation of these patterns, as it significantly aids in determining their context within the Elliott Wave cycles, specifically identifying them as part of waves 1, A, 5, or C.For an in-depth exploration, refer to our detailed analysis in Decoding Wedge Patterns🎯 Rising Wedge (Converging Type)The Rising Wedge pattern, historically viewed with a bearish bias, suggests that a downward trend is more likely upon a breakout below its lower trend line. This perception positions the pattern as a signal for traders to consider bearish positions once the price breaks through this critical support.🎯 Falling Wedge (Converging Type)The Falling Wedge pattern is traditionally seen through a bullish lens, indicating potential upward momentum when the price surpasses its upper trend line. This established viewpoint suggests initiating long positions as a strategic response to such a breakout, aligning with the pattern's optimistic forecast.🟡 Contracting Triangle PatternsContracting Triangles, encompassing Converging, Ascending, and Descending Triangles, are particularly noteworthy when they appear as part of the Elliott Wave's B or 2 waves. These patterns typically signal a continuation of the pre-existing trend that preceded the triangle's formation. This principle also underpins the Pennant Pattern, which emerges following an impulse wave, indicating a pause before the trend's resumption.🎲 Alternate Way of Looking into Converging PatternsMain issue with historical perception are:There is no clear back testing data to prove whether the general perception is correct or more profitable.Elliott Waves concepts are very much subjective and can be often difficult for beginners and misleading even for experts. So, the alternative way is to treat all the converging patterns equally and devise a method to trade using a universal way. This allows us to back test our thesis and be definitive about the profitability of these patterns.Here are our simple steps to devise and test a converging pattern based strategy.Consider all converging patterns as bidirectional. Meaning, they can be traded on either side. Thus chose to trade based on the breakout. If the price beaks up, then trade long and if the price breaks down, then trade short.For each direction, define criteria for entry, stop, target prices and also an invalidation price at which the trade is ignored even without entry.Backtest and Forward test the strategy and collect data with respect to win ratio, risk reward and profit factor to understand the profitability of patterns and the methodology.Now, let's break it further down.🟡 Defining The Pattern Trade ConditionsMeasure the ending distance between the trend line pairs and set breakout points above and beyond the convergence zone.🎯 Entry Points - These can be formed on either side of the convergence zone. Adding a small buffer on top of the convergence zone is ideal for setting the entry points of converging patterns.Formula for Entry can be:Pine Script®Long Entry Price = Top + (Top - Bottom) X Entry Ratio Short Entry Price = Bottom - (Top-Bottom) X Entry RatioWhereas Top refers to the upper side of the convergence zone and bottom refers to the lower side of the convergence zone. Entry Ratio is the buffer ratio to apply on top of the convergence zone to get entry points.🎯 Stop Price - Long entry can act as stop for short orders and the short entry can act as stop price for long orders. However, this is not mandatory and different logic for stops can be applied for both sides.Formula for Stop Can bePine Script®Long Stop Price = Bottom - (Top - Bottom) X Stop Ratio Short Stop Price = Top + (Top - Bottom) X Stop Ratio🎯 Target Price - It is always good to set targets based on desired risk reward ratio. That means, the target should always depend on the distance between entry and stop price.The general formula for Target can be:Pine Script®Target Price = Entry + (Entry-Stop) X Risk Reward🎯 Invalidation Price - Invalidation price is a level where the trade direction for a particular pattern needs to be ignored or invalidated. This price need to be beyond stop price. In general, trade is closed when a pattern hits invalidation price. Formula for Invalidation price is the same as that of Stop Price, but Invalidation Ratio is more than that of Stop RatioPine Script®Long Invalidation Price = Bottom - (Top - Bottom) X Invalidation Ratio Short Invalidation Price = Top + (Top - Bottom) X Invalidation Ratio🟡 Back Test and Forward Test and Measure the Profit FactorIt is important to perform sufficient testing to understand the profitability of the strategy before using them on the live trades. Use multiple timeframes and symbols to perform a series of back tests and forward tests, and collect as much data as possible on the historical outcomes of the strategy.Profit Factor of the strategy can be calculated by using a simple formulaPine Script®Profit Factor = (Wins/Losses) X Risk Reward🟡 Use Filters and Different CombinationsFilters will help us in filtering out noise and trade only the selective patterns. The filters can include a simple logic such as trade long only if price is above 200 SMA and trade short only if price is below 200 SMA. Or it can be as complex as looking into the divergence signals or other complex variables.

ترجمه شده از: English
نمایش اصل پیام
نوع سیگنال: خنثی
تایم فریم:
1 روز
قیمت لحظه انتشار:
‎$۲۶٬۷۴۶٫۲۳
اشتراک گذاری
Trendoscope
Trendoscope
رتبه: 9955
1.5
BTC،تکنیکال،Trendoscope

🎲 برنامه افزودنی به نمودارهای نمودار مبتنی بر جفت خط روند - پرچم ها و PennantsAfter کاوش در شناسایی الگوریتمی و طبقه بندی الگوهای نمودار ، اکنون ما با تمرکز بر روی الگوهای پرچم و نمودار ، به الگرهای الگوریتمی و طبقه بندی الگوهای نمودار می پردازیم. این الگوها از ساختارهای مبتنی بر جفت خط روند اساسی ، که اغلب تحت تأثیر تکانه های قبل از بازار قرار دارند ، تکامل می یابد.-قوانین شناسایی برای الگوهای پسوند-وجود الگوهای نمودار پایه را شناسایی کنید قبل از شناسایی الگوهای پرچم و خط ، ما ابتدا باید وجود داشته باشیم که وجود جفت خط پایه زیر را بر اساس تبدیل یا الگوهای موازی مشخص کنید. (پیمانکاری) مثلث صعودی (پیمانکاری) 🎯 شناسایی الگوهای توسعه این تنظیم پتانسیل برای یک الگوی فرمت را نشان می دهد: یک پرچم صعودی از یک ضربه مثبت و به دنبال آن یک کانال نزولی یا یک گوه در حال سقوط بیرون می آید ، یک پرچم نزولی پس از یک ضربه منفی که منجر به یک کانال صعودی یا گوه در حال افزایش می شود ، ظاهر می شود. یک فشار صعودی با یک فشار مثبت که قبل از یک مثلث همگرا یا مثلث صعودی انجام می شود ، نشان داده شده است. یک خط نزولی از یک انگیزه منفی و یک مثلث همگرا یا نزولی پیروی می کند. طبقه بندی ها و ویژگی های الگوی - الگوی پرچم صعودی با ویژگی های الگوی پرچم صعودی به شرح زیر است. یک کانال صعودی کوتاه یا یک گوه در حال ظهور نمونه ای از الگوی پرچم نزولی است - الگوی قصیدهای ظالمانه از الگوی صدف صعودی به شرح زیر است که با یک موجک مثبت با یک موج مثبت و به دنبال یک مثلث همگرا یا الگوی مثلث صعودی و یا الگوی مثلث صعودی ، یک الگوی پنالتی سس رنگ آمیزی است. با یک مثلث همگرا یا یک الگوی مثلث همگرا نزولی. در اینجا نمونه ای از الگوی بازرگانی نزولی وجود دارد - الگوهای توسعه بازرگانی یک روند قوی در بازار ، معمول است که دوره های موقت ادغام را مشاهده کنید ، الگویی را تشکیل دهید که یا همگرایی یا دامنه دارند ، که اغلب با جهت روند مداوم مخالف است. چنین مکثها ممکن است زمینه را برای ادامه روند روند پس از شکستن فراهم کند. این فرض که این روند از سر گرفته می شود ، تعصب اساسی پرچم و الگوهای مهم را از بین می برد ، اما تصمیمات خود را صرفاً در مورد روندهای گذشته قرار نمی دهد. انجام آزمایش های پشتی شخصی برای تعیین مؤثرترین استراتژی های ورود و خروج برای این الگوهای بسیار مهم است. به یاد داشته باشید ، رفتار این الگوهای می تواند با نوسانات دارایی و بازه زمانی خاص مورد تجزیه و تحلیل متفاوت باشد. به تفسیر این الگوهای با احتیاط بپردازید ، با توجه به اینکه پویایی بازار در معرض طیف گسترده ای از عوامل تأثیرگذار است که ممکن است از نتایج مورد انتظار منحرف شوند. برای سرمایه گذاران و بازرگانان ، شرکت در آزمایش کامل پشت ، تعیین نقاط ورود ، سفارشات متوقف کردن و اهداف هدفمند که با سبک معاملات فردی شما و اشتهای ریسک شما مطابقت دارد ، ضروری است. این مرحله برای ارزیابی زنده ماندن این الگوهای مطابق با استراتژی ها و اهداف معاملات شخصی شما مهم است. این بسیار معمول است که شاهد یک شکست پس از شکل گیری این الگوهای معکوس باشند. علاوه بر این ، اگر در مقابل تعصب ، اگر شکستگی در جهت مخالف اتفاق بیفتد ، به ویژه هنگامی که روند قبل از شکل گیری الگوی در برابر الگوی bias قرار دارد ، جایی برای نوآوری در تجارت وجود دارد.

ترجمه شده از: English
نمایش اصل پیام
نوع سیگنال: خنثی
تایم فریم:
2 ساعت
قیمت لحظه انتشار:
‎$۴۵٬۳۸۸٫۷۸
اشتراک گذاری
Trendoscope
Trendoscope
رتبه: 9955
1.5
BTC،تکنیکال،Trendoscope

به "تفکر در کاج" سریال های فیلم کوتاه در مورد موضوعات کاج اسکریپت خوش آمدید. موضوع Today در حال رسیدگی به خطا است - "این مطالعه تعداد زیادی شمع ها را در تاریخ" و سایر موضوعات مرتبط با BAR_INDEX ارجاع می دهد. تاریخ "و چگونگی غلبه بر این مسئله. محدودیت های BAR_INDEX با ترسیم اشیاء در نمودار // مقدار شناور = بستن [10000] // طرح (مقدار) // اجرای جایگزین مقادیر var = array.new () ارزش ها. // خطای را در اولین bar پرتاب می کند زیرا تعداد موارد کمتر از 10000 است // float formarray = tores.get (10000) // طرح (ValueFromArray) // گزینه 1 - وقتی تعداد میله های موجود کمتر از 10000 است ، آخرین مقدار موجود را دریافت کنید float formarray1 = tores.get (math.min (bar_index ، 10000)) طرح (ValueFromArray1) // گزینه 2 - اگر تعداد میله های موجود کمتر از 10000 است ، مقدار آن را بر روی NA دیگر تنظیم کنید و مقدار 10000 میله را به عقب برگردانید float float fromarray2 = toales.size () <= 10000؟ سدیم: مقادیر. get (10000) طرح (ValueFromArray2) گسترش 13 خط - برنامه مثال - ترسیم محدودیت های شی با Bar indexpine script® // تلاش برای ایجاد یک خط خیلی دور در تاریخ یا در آینده // if (barstate.islast) // خطایی را پرتاب می کند که فقط می تواند قبل از آن به 9999 میله بکشد // ln1 = line.new (bar_index ، high ، bar_index-0000 ، بالا) // خطا را پرتاب می کند زیرا ما فقط در آینده می توانیم 500 میله را ترسیم کنیم. // ln2 = line.new (bar_index ، high ، bar_index+501 ، high) statPoint = ta.ValueWhen (bar_index == last_bar_index-0000 ، زمان ، 0) قیمت شناور = 0.0 if (barstate.islast) // با این حال ، ما می توانیم بیش از 10000 میله یا بیش از 500 میله را در آینده با استفاده از زمان به جای bar _index به عقب برگردانیم ln = line.new (زمان ، بالا ، شروع ، بالا ، xloc = xloc.bar_time) // وقتی خط با استفاده از xloc = xloc.bar_time کشیده می شود ، نمی توان از line.get_price استفاده کرد // قیمت: = ln.get_price (last_bar_index-5000) 11 خط را گسترش دهید

ترجمه شده از: English
نمایش اصل پیام
نوع سیگنال: خنثی
تایم فریم:
1 ساعت
قیمت لحظه انتشار:
‎$۴۳٬۶۰۹٫۸۹
اشتراک گذاری
Trendoscope
Trendoscope
رتبه: 9955
1.5
BTC،تکنیکال،Trendoscope

به سریال های فیلم کوتاه "Thinking in Pine" در مورد موضوعات Pine Script. نکته بحث و گفتگوی TODAY اشکال زدایی و ابزارهایی است که Pine Script ما را برای اشکال زدایی برنامه های خود فراهم می کند. امتیازات در مورد اشکال زدایی با استفاده از "طرح" برای ارزش های سری عددی. استفاده از سیاهههای مربوط به کاج برای اشکال زدایی برای مواردی که "طرح" مناسب نیست - برنامه مثال - اشکال زدایی با استفاده از plotpine script®l طول = input.int (14 ، "طول") multiplier = input.float (4 ، "ضرب") var dir = 1 var stumpdistance = ta.atr (طول) * ضرب // حذف VAR را برای حل شماره اول // متوقف کردن = ta.atr (طول) * ضرب buystopcurrent = محاصره نزدیک sellstopcurrent = بستن + متوقف کردن var buystop = buystopcurrent var sellstop = sellstopcurrent خرید: = دیر> 0؟ Math.max (buystop ، buystopcurrent): buystopcurrent فروش: = دیر <0؟ math.min (sellstop ، sellstopcurrent): sellstopcurrent // از NZ برای غلبه بر مسائل NA با Math.max/ Math.min استفاده کنید // buystop: = dir> 0؟ Math.max (NZ (buystop ، buystopcurrent) ، buystopcurrent): buystopcurrent // sellstop: = dir <0؟ Math.min (NZ (Sellstop ، sellstopcurrent) ، sellstopcurrent): sellstopcurrent dir: = dir == 1 و بستن sellstop؟ 1: دیر // اظهارات توطئه مورد استفاده برای اشکال زدایی. نمایش به نمایش داده می شود. data_window زیرا توطئه های اشکال زدایی نیازی به نمایش در نمودارها ندارند طرح (ایستگاه متوقف ، "فاصله متوقف" ، رنگ. طرح (buystopcurrent ، 'buystopcurrent' ، color.red ، display = display.data_window) طرح (sellstopcurrent ، 'sellstopcurrent' ، color.green ، display = display.data_window) طرح (Buystop ، 'buystop' ، color.red ، display = display.data_window) طرح (Sellstop ، 'sellstop' ، color.green ، display = display.data_window) طرح (dir ، "جهت" ، color.white ، display = display.data_window) طرح (dir> 0؟ buystop: sellstop ، 'supertrend' ، dir> 0؟ color.red: color.green) گسترش 26 خط - برنامه مثال - کاج logspine script®sum = 0 arr = array.new () برای i = 0 تا 10 جمع+= من // روی هر bar و همچنین در هر کنه در زمان واقعی وارد شوید // log.info ('جمع در تکرار {0} {1}' ، i ، sum) // فقط برای اولین بار اجرا کنید // if (barstate.isfirst) // log.info ('جمع در تکرار {0} {1}' ، i ، sum) // در آخرین تأیید شده bar اجرا کنید // if (barstate.islastconfirmedhistory) // log.warning ('جمع در تکرار {0} {1}' ، i ، sum) // if (barstate.isrealtime) // log.warning ('جمع در تکرار {0} {1}' ، i ، sum) // نمایش فقط یک بار // varip Showlog = درست است // if (barstate.isrealtime و نمایشگاه) // log.warning ('جمع در تکرار {0} {1}' ، i ، sum) // if (i == 10) // نمایشگاه: = نادرست // از طریق آرایه استخراج کنید و در خارج از حلقه وارد شوید arr.push (جمع) // آرایه استخراج شده را در زمان واقعی وارد کنید و فقط یک بار چاپ کنید Varip Showlog = درست است if (barstate.isrealtime و نمایشگاه) log.error ("جمع در تکرارهای مختلف: {0}" ، arr) نمایشگاه: = نادرست طرح (جمع) گسترش 30 خط - سیاهههای مربوط به مرجع - کتابچه راهنمای مرجع - کتابچه راهنمای مرجع

ترجمه شده از: English
نمایش اصل پیام
نوع سیگنال: خنثی
تایم فریم:
1 ساعت
قیمت لحظه انتشار:
‎$۴۳٬۶۲۳٫۰۵
اشتراک گذاری
Trendoscope
Trendoscope
رتبه: 9955
1.5
BTC،تکنیکال،Trendoscope

سلام به همه ، به جلسه دیگری از "تفکر در کاج" خوش آمدید - آموزش های ویدئویی کوتاه در مورد اسکریپت کاج. قبل از ادامه این ویدئو ، اگر با متغیرهای VAR ، VARIP و منظم آشنا نیستید ، لطفاً فیلم قبلی ما را تماشا کنید - "فکر در کاج - VAR ، VAR و متغیرهای منظم" 🎲 بحث امروز چگونه VAR ، VARIP و منظم متغیر متغیر با کد اصلاحات متغیر با بروزرسانی های تاریخ و زمان واقعی bar. مفهوم Rollback از متغیرهای VAR 🎯 مثال برنامه استفاده شده Script® // اظهارات در هر کنه اجرا می شود تعداد = 0.0 تعداد+= 1 varip varipcount = 0 // فقط یک بار در اولین bar اجرا می شود varipcount+= 1 // تنظیم مجدد پیشخوان در هر bar // if (barstate.isconfirmed) // varipcount: = 0 // بازگرداندن و اختصاص به هر کنه var varcount = 0.0 // فقط یک بار در اولین bar اجرا می شود varcount+= 1 // varcount: = varcount [1] - بازگشت // varcount: = varcount + 1 - دوباره اجرا کنید طرح (Varipcount ، 'Varip Count') طرح (varcount ، 'var count') طرح (تعداد ، "çount") arrregular = array.new () var arrvar = array.new () varip arrvarip = array.new () if (bar_index> = last_bar_index -5) arrerregular.push (بستن) arrvar.push (نزدیک) arrvarip.push (نزدیک) log.info ('منظم: {0}' ، arrregular) log.info ('var: {0}' ، arrvar) log.info ('varip: {0}' ، arrvarip) گسترش 27 خط - کتابچه راهنمای کاربر ارجاع اسکریپت - مدل اجرای

ترجمه شده از: English
نمایش اصل پیام
نوع سیگنال: خنثی
تایم فریم:
1 دقیقه
قیمت لحظه انتشار:
‎$۴۳٬۶۲۳٫۰۵
اشتراک گذاری
Trendoscope
Trendoscope
رتبه: 9955
1.5
BTC،تکنیکال،Trendoscope

سلام به همه ، به آموزش های کوتاه ویدیویی "فکر در کاج" خوش آمدید. در این ویدئو ، ما در مورد موارد خاص استفاده از متغیرهای VAR در تعریف عملکرد در مورد تعریف عملکرد بحث کرده ایم. اگر شما با متغیرهای VAR آشنا نیستید ، لطفاً یک قدم عقب بردارید و فیلم قبلی ما را تماشا کنید - "تفکر در کاج - VAR ، VARIP و متغیرهای منظم" 🎲 خلاصه VAR در یک دامنه عملکرد = رفتار با دعوت های مختلف) استفاده می کند. var i = 0 i+= 1 var1 = افزایش () var2 = افزایش () var3 = افزایش () // کد فوق معادل است // var i1 = 0 // i1+= 1 // var1 = i1 // var i2 = 0 // i2+= 1 // var2 = i2 // var i3 = 0 // i3+= 1 // var3 = i3 طرح (var1 ، "پیشخوان 1" ، رنگ = color.blue) طرح (var2 ، "پیشخوان 2" ، رنگ = color.red) طرح (var3 ، "پیشخوان 3" ، رنگ = color.purple) arr = array.from (var1 ، var2 ، var3) برای i = 1 تا 3 arr.push (افزایش ()) // کد فوق معادل است // var i4 = 0 // i4+= 1 // arr.push (i4) if (bar_index == 4) log.info ("مقدار آرایه حاوی مقادیر افزایشی: {0} '، arr) گسترش 30 خط - کتابچه راهنمای کاربر ارجاع اسکریپت - متغیر اعلامیه های اسکریپت اسکریپت - مرجع مرجع - var

ترجمه شده از: English
نمایش اصل پیام
نوع سیگنال: خنثی
تایم فریم:
1 ساعت
قیمت لحظه انتشار:
‎$۴۳٬۶۲۳٫۰۵
اشتراک گذاری
Trendoscope
Trendoscope
رتبه: 9955
1.5
BTC،تکنیکال،Trendoscope

سلام به همه ، به سری فیلم های کوتاه "Think in Pine" خوش آمدید. در این جلسه ، ما در مورد چند مورد خاص از متغیرهای سری زمانی و استفاده از اپراتور تاریخی در دامنه محلی بحث کرده ایم. اگر فیلم قبلی ما را تماشا نکرده اید - "فکر کردن در کاج - سری زمانی" ، request شما این کار را قبل از ادامه این ویدئو انجام دهید. خلاصه بحث امروز ما چگونه برای متغیرهای تعریف شده در داخل یک سری از برنامه های تاریخی تعریف شده است. متغیرها در یک شرایط Varip ShowloginLoop = درست است if (bar_index ٪ 3 == 0) ویژه barindex = bar_index if (bar_index> last_bar_index-3 و ShowloginLoop) log.info (فهرست ویژه و قبلی bar قبلی عبارتند از: {0} و {1} '، SpecialBarindex ، SpecialBarIndex [1]) ShowloginLoop: = نادرست // سری متغیرهای زمانی در یک حلقه arrayofx = array.new () arrayoflastx = array.new () برای i = 1 تا 5 x = من*10 arrayofx.push (x) arrayoflastx.push (x [1]) if (barstate.islastconfirmedhistory) log.info ('آرایه x: {0}' ، arrayofx) log.info ('آرایه از آخرین x: {0}' ، arrayoflastx) 14 خط را گسترش دهید refiences: کتابچه راهنمای کاربر Pine Script® - کتابچه راهنمای کاربر Script® Script® Script® Time Scripi

ترجمه شده از: English
نمایش اصل پیام
نوع سیگنال: خنثی
تایم فریم:
1 ساعت
قیمت لحظه انتشار:
‎$۴۳٬۶۲۳٫۰۵
اشتراک گذاری
Trendoscope
Trendoscope
رتبه: 9955
1.5
BTC،تکنیکال،Trendoscope

سلام به همه ، به سری فیلم های کوتاه "Think in Pine" خوش آمدید. در این ویدئو ، ما در مورد مفهوم متغیرهای سری زمانی در Pinescript بحث می کنیم. اگر شما با متغیرهای var و varip آشنا نیستید - لطفاً قبل از ادامه این فیلم را به عقب برگردانید و این فیلم را تماشا کنید - "تفکر در کاج - وارپ ، متغیرهای متغیرهای منظم" 🎲 خلاصه بحث ما به شرح زیر است ، و چگونه در Pines Cript استفاده می شود؟ چگونه می توانیم به ارزشهای تاریخی سریال های زمانی دسترسی پیدا کنیم؟ محدودیت های دسترسی به مقادیر تاریخی 🎯 برنامه مثال استفاده از اسکریپت Script®CurrentBar = bar_index var currentBarusingVar = 0 CurrentBarusingvar: = bar_index Varip Showlog = درست است Valueat200thbar = ta.valuewhen (bar_index == 500 ، جریان فعلی ، 0) if (barstate.islast و نمایشگاه) log.info ("فعلی Bar مقادیر با استفاده از متغیرهای منظم و VAR: {0} ، {1}" ، جریان فعلی ، فعلی barusingvar) log.info ("آخرین Bar مقادیر با استفاده از متغیرهای منظم و VAR: {0} ، {1}" ، جریان فعلی [1] ، جریان barusingvar [1]) log.info ("مقادیر 500 میله قبل با استفاده از متغیرهای منظم و VAR: {0} ، {1}" ، جریان فعلی [500] ، فعلی Barusingvar [500]) افست = bar_index-25000 log.info ("مقادیر در 25000th bar با استفاده از متغیرهای معمولی و VAR: {0} ، {1}" ، جریان فعلی [افست] ، جریان barusingvar [افست]) نمایشگاه: = نادرست طرح (bar_index ، "Bar فهرست" ، color = color.blue ، display = display.data_window) گسترش 12 لینک در اینجا خطاهای استفاده از اپراتورهای تاریخی در حلقه یا تحت شرایط است. ما بحث کرد که در ویدیوی بعدی ما. منابع: کتابچه راهنمای کاربر Pine Script® - کتابچه راهنمای کاربر ModelPine Script® - کتابچه راهنمای کاربر SeriesPine Script® کاربر - اپراتور ارجاع تاریخ [url = tradingview.com/pine -script -reference/v5/[]] Pine Script® مرجع مرجع - کتابچه راهنمای مرجع تاریخ - اپراتور ارجاع تاریخ

ترجمه شده از: English
نمایش اصل پیام
نوع سیگنال: خنثی
تایم فریم:
1 ساعت
قیمت لحظه انتشار:
‎$۴۳٬۶۲۳٫۰۵
اشتراک گذاری
سلب مسئولیت

هر محتوا و مطالب مندرج در سایت و کانال‌های رسمی ارتباطی سهمتو، جمع‌بندی نظرات و تحلیل‌های شخصی و غیر تعهد آور بوده و هیچگونه توصیه‌ای مبنی بر خرید، فروش، ورود و یا خروج از بازار بورس و ارز دیجیتال نمی باشد. همچنین کلیه اخبار و تحلیل‌های مندرج در سایت و کانال‌ها، صرفا بازنشر اطلاعات از منابع رسمی و غیر رسمی داخلی و خارجی است و بدیهی است استفاده کنندگان محتوای مذکور، مسئول پیگیری و حصول اطمینان از اصالت و درستی مطالب هستند. از این رو ضمن سلب مسئولیت اعلام می‌دارد مسئولیت هرنوع تصمیم گیری و اقدام و سود و زیان احتمالی در بازار سرمایه و ارز دیجیتال، با شخص معامله گر است.

نماد برگزیده
برترین تریدر‌
دنبال شده
هشدار