工作已完成
指定
Hello,
You program me a code for tradingview.
We work together, step-by-step through the code so there are no errors and unnecessary work.
The first step is "Generally".
Use the channel breakout strategy (PineScript at the bottom) as a basis.
---
Input: Use Bitcoin (5 minutes) for testing and reference.
Generally
Long or Short (Long, Short, Both) = long
Period_Upper_Band 5
Period_Lower_Band 5
Visualization (checkbox) = true
Tolerance_points 5.0
(Shifts the channel up and down by the tolerance points. This generates fewer signals)
Disaster Stop Loss (1.5%)
Show_Stop_Loss (Yes/No - checkbox) = no
Filter 1
Period_MA 200
use_Close_<>_MA (yes/no - checkbox) = no
(Close > Ma long is active - Close< MA short is active)
use_MA[0]_<>_MA[1] (yes/no - checkbox)
(MA[0] > MA[1] long is active - MA[0] < MA[1] short is active)
(If the filter is active, then the MA is displayed)
Filter 2
Period_High_Low_Chanel 200
use_High_Low_Chanel (Yes/No - checkbox) = no
The uptrend starts when the upper band rises
The downtrend starts when the lower band falls
(If active, then the High_Low_Chanel is displayed)
Time Management
Use_Trading_Time (Yes/No - checkbox) = no
Trading time 12:00 to 18:00
(opens positions only during this time)
Use_CloseTime (Yes/No - Checkbox) = no
Close time 20:00
(closes all positions at this time)
Use start date (yes/no - checkbox) = no
Start date = 01/01/2020
Alert and Triangle
Show_triangle_ (yes/no - checkbox) = no
Shows a triangle when the upper or lower band is hit by price. The triangle is on the candle and on the price. (consider the filters)
Alarm_und_Webhook (Yes/No - checkbox) = no
Alert when the upper or lower band is hit by price.
(consider the filters)
For copying trades (https://www.pineconnector.com/) or something.
-----