joinfree

ProfitStrategy01

//@version=2
strategy("ProfitStrategy01", overlay=true)
// Simple Profit making strategy by joinfree
Phigh = (open>close?open:close)
Plow = (open>close?close:open)
longC = (strategy.position_size Phigh) and (Plow > Plow) and (close > open)
strategy.entry("buy", strategy.long, 100000, when=longC)
strategy.exit("buy", "buy", 100000, profit=200, stop=50)
shortC = (strategy.position_size Phigh) and (Plow > Plow) and (close < open)
strategy.entry("sell", strategy.short, 100000, when=shortC)
strategy.exit("sell", "sell", 100000, profit=200, stop=50)
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,因此交易者可以理解和验证它。为作者加油! 您可以免费使用它,但是在发布中重复使用此代码受网站规则的约束。您可以收藏它以在图表上使用。

想在图表上使用此脚本?
//@version=2
strategy("ProfitStrategy01", overlay=true)
// Simple Profit making strategy by joinfree 
Phigh = (open>close?open:close)
Plow = (open>close?close:open)
longC = (strategy.position_size <= 0) and (Phigh[1] > Phigh[0]) and (Plow[0] > Plow[1]) and (close[0] > open[0])
strategy.entry("buy", strategy.long, 100000, when=longC)
strategy.exit("buy", "buy",  100000, profit=200, stop=50)
shortC = (strategy.position_size <= 0) and (Phigh[1] > Phigh[0]) and (Plow[0] > Plow[1]) and (close[0] < open[0])
strategy.entry("sell", strategy.short, 100000, when=shortC)
strategy.exit("sell", "sell",  100000, profit=200, stop=50)

评论

@addyadzzz4 (hi how does this work ?) When conditions are right enter trade with tight stops and 4 times profit, so with even with three wrongs and one right you are making profit on your trades. All the best.
+2 回复
hi how does this work ??
+2 回复
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 关于 图表功能 价格 推荐朋友 网站规则 帮助中心 网站 & 经纪商解决方案 插件 图表解决方案 轻量图表库 博客 & 新闻 Twitter
概览 个人资料设置 账户和账单 推荐朋友 代币 我的客服工单 帮助中心 私人消息 在线聊天 退出