Find Jobs
Hire Freelancers

Trading View Pinescript MA Crossover Script Issue

$30-250 USD

クローズ
投稿日: 6年以上前

$30-250 USD

完了時にお支払い
We have an existing pine script for alerts for buy and sell using 2 MAs (moving averages) crossing over and under. Problem: A buy order is sometimes followed by another buy order. We believe this happens because sometimes the faster MA goes above the slower MA but the candle closes below the slower MA in one candle, bringing the faster MA below the slower MA again without a sell alert as we can only have one alert per bar. Solution: We want you to modify our script so every buy alert to be followed by a sell alert based on the MAs crossing over or under in real time and not per bar close. Script: //@version=2 study("MA Alert 2") src = input(close) ma_1 = sma(src, 3) ma_2 = sma(src, 30) c = crossover(ma_1, ma_2) d = crossover(ma_2, ma_1) alertcondition(c, title='Red crosses blue', message='BUY_BITTREX_BTC-') alertcondition(d, title='Blue crosses red', message='SELL_BITTREX_BTC-') plot(ma_1, color=red) plot(ma_2, color=blue) plot(crossover(ma_2, ma_1) ? ma_2 : na, style = cross, linewidth = 7) plot(crossover(ma_1, ma_2) ? ma_1 : na, style = circles, linewidth = 7)
プロジェクト ID: 15914853

プロジェクトについて

リモートプロジェクト
アクティブ 6年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です

クライアントについて

BANGLADESHのフラグ
Dhaka, Bangladesh
4.9
5
お支払い方法確認済み
メンバー登録日:4月 14, 2004

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。