TradingView

# 策略在非標準圖表類型上計算錯誤(平均K線、磚形圖等)

``//@version=4 strategy("My Strategy", overlay=true) longCondition = open<close if (longCondition) strategy.entry("My Long Entry Id", strategy.long) shortCondition = open>close if (shortCondition) strategy.entry("My Short Entry Id", strategy.short)//@version=4 strategy("My Strategy", overlay=true) longCondition = open<close if (longCondition) strategy.entry("My Long Entry Id", strategy.long) shortCondition = open>close if (shortCondition) strategy.entry("My Short Entry Id", strategy.short)//@version=4 strategy("My Strategy", overlay=true) longCondition = open<close if (longCondition) strategy.entry("My Long Entry Id", strategy.long) shortCondition = open>close if (shortCondition) strategy.entry("My Short Entry Id", strategy.short)//@version=4 strategy("My Strategy", overlay=true) longCondition = open<close if (longCondition) strategy.entry("My Long Entry Id", strategy.long) shortCondition = open>close if (shortCondition) strategy.entry("My Short Entry Id", strategy.short)//@version=4 strategy("My Strategy", overlay=true) longCondition = open<close if (longCondition) strategy.entry("My Long Entry Id", strategy.long) shortCondition = open>close if (shortCondition) strategy.entry("My Short Entry Id", strategy.short)//@version=4 strategy("My Strategy", overlay=true) longCondition = open<close if (longCondition) strategy.entry("My Long Entry Id", strategy.long) shortCondition = open>close if (shortCondition) strategy.entry("My Short Entry Id", strategy.short)``
HTML
{"ft_lang_label":"__label__zh","ft_lang_prob":0.591406,"math_prob":0.7634554,"size":2199,"snap":"2021-21-2021-25","text_gpt3_token_len":1230,"char_repetition_ratio":0.24874716,"word_repetition_ratio":0.9109589,"special_character_ratio":0.1891769,"punctuation_ratio":0.14285715,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96761054,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-06-21T14:38:07Z\",\"WARC-Record-ID\":\"<urn:uuid:359cda2f-5df5-43db-a370-8b111a38fec4>\",\"Content-Length\":\"186972\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bbe80472-ec20-43e1-9ee3-174c20b82c5d>\",\"WARC-Concurrent-To\":\"<urn:uuid:273e89d2-5f93-4fba-9557-d0c92c46cc4f>\",\"WARC-IP-Address\":\"13.249.43.51\",\"WARC-Target-URI\":\"https://tw.tradingview.com/support/solutions/43000481029/\",\"WARC-Payload-Digest\":\"sha1:NPXYDGJKH3EQ7V7P5CVR6AXJVWISSA3L\",\"WARC-Block-Digest\":\"sha1:FHAVK5BB4WKGLPTK4BKX27XJ5VZ2F72Q\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-25/CC-MAIN-2021-25_segments_1623488273983.63_warc_CC-MAIN-20210621120456-20210621150456-00474.warc.gz\"}"}