金字塔决策交易系统

 找回密码
 

微信登录

微信扫一扫,快速登录

搜索
查看: 2946|回复: 1

这个网格为何无法触发交易呢?

[复制链接]

58

主题

210

帖子

210

积分

等级: 已到期

注册:
2022-9-1
曾用名:
发表于 2023-2-15 22:46 | 显示全部楼层 |阅读模式
//变量定义
x:=5500;

//平多

if close>5525 and holding=2 then sell(1,2,marketr);
if close>5500 and holding=3 then sell(1,1,marketr);
if close>5475 and holding=4 then sell(1,1,marketr);
if close>5450 and holding=5 then sell(1,1,MARKETR);
if close>5425 and holding=6 then sell(1,1,MARKETR);
if close>5400 and holding=7 then sell(1,1,MARKETR);
if close>5375 and holding=8 then sell(1,1,MARKETR);
if close>5350 and holding=9 then sell(1,1,MARKETR);
if close>5325 and holding=10 then sell(1,1,MARKETR);
if close>5300 and holding=11 then sell(1,1,MARKETR);
if close>5275 and holding=12 then sell(1,1,MARKETR);
if close>5250 and holding=13 then sell(1,1,MARKETR);
if close>5225 and holding=14 then sell(1,1,MARKETR);
if close>5200 and holding=16 then sell(1,2,MARKETR);
if close>5175 and holding=18 then sell(1,2,MARKETR);
if close>5150 and holding=20 then sell(1,2,MARKETR);
if close>5125 and holding=22 then sell(1,2,MARKETR);
if close>5100 and holding=24 then sell(1,2,MARKETR);
if close>5075 and holding=26 then sell(1,2,MARKETR);
if close>5050 and holding=28 then sell(1,2,MARKETR);
if close>5025 and holding=30 then sell(1,2,MARKETR);
if close>5000 and holding=32 then sell(1,2,MARKETR);
if close>4975 and holding=36 then sell(1,2,MARKETR);
if close>4950 and holding=38 then sell(1,2,MARKETR);
if close>4925 and holding=40 then sell(1,2,MARKETR);
if close>4900 and holding=42 then sell(1,2,MARKETR);
if close>4875 and holding=44 then sell(1,2,MARKETR);
if close>4850 and holding=46 then sell(1,2,MARKETR);
if close>4825 and holding=48 then sell(1,2,MARKETR);
if close>4800 and holding=50 then sell(1,2,MARKETR);
if close>4775 and holding=52 then sell(1,2,MARKETR);
if close>4750 and holding=54 then sell(1,2,MARKETR);
if close>4725 and holding=56 then sell(1,2,MARKETR);
if close>4700 and holding=58 then sell(1,2,MARKETR);
if close>4675 and holding=60 then sell(1,2,MARKETR);
if close>4650 and holding=62 then sell(1,2,MARKETR);
if close>4625 and holding=64 then sell(1,2,MARKETR);

//价格等于情况下开仓,并且只会开仓一次用holding来控制
if close=5500 and holding=0 then buy(1,2,marketr);
if close=5475 and holding=2 then buy(1,1,marketr);
if close=5450 and holding=3 then buy(1,1,marketr);
if close=5425 and holding=4 then buy(1,1,MARKETR);
if close=5400 and holding=5 then buy(1,1,MARKETR);
if close=5375 and holding=6 then buy(1,1,MARKETR);
if close=5350 and holding=7 then buy(1,1,MARKETR);
if close=5325 and holding=8 then buy(1,1,MARKETR);
if close=5300 and holding=9 then buy(1,1,MARKETR);
if close=5275 and holding=10 then buy(1,1,MARKETR);
if close=5250 and holding=11 then buy(1,1,MARKETR);
if close=5225 and holding=12 then buy(1,1,MARKETR);
if close=5200 and holding=13 then buy(1,1,MARKETR);
if close=5175 and holding=14 then buy(1,2,MARKETR);
if close=5150 and holding=16 then buy(1,2,MARKETR);
if close=5125 and holding=18 then buy(1,2,MARKETR);
if close=5100 and holding=20 then buy(1,2,MARKETR);
if close=5075 and holding=22 then buy(1,2,MARKETR);
if close=5050 and holding=24 then buy(1,2,MARKETR);
if close=5025 and holding=26 then buy(1,2,MARKETR);
if close=5000 and holding=28 then buy(1,2,MARKETR);
if close=4975 and holding=30 then buy(1,2,MARKETR);
if close=4950 and holding=32 then buy(1,2,MARKETR);
if close=4925 and holding=34 then buy(1,2,MARKETR);
if close=4900 and holding=36 then buy(1,2,MARKETR);
if close=4875 and holding=38 then buy(1,2,MARKETR);
if close=4850 and holding=40 then buy(1,2,MARKETR);
if close=4825 and holding=42 then buy(1,2,MARKETR);
if close=4800 and holding=44 then buy(1,2,MARKETR);
if close=4775 and holding=46 then buy(1,2,MARKETR);
if close=4750 and holding=48 then buy(1,2,MARKETR);
if close=4725 and holding=50 then buy(1,2,MARKETR);
if close=4700 and holding=52 then buy(1,2,MARKETR);
if close=4675 and holding=54 then buy(1,2,MARKETR);
if close=4650 and holding=56 then buy(1,2,MARKETR);
if close=4625 and holding=58 then buy(1,2,MARKETR);
if close=4600 and holding=60 then buy(1,2,MARKETR);

资产:ASSET,NOAXIS,COLORMAGENTA,PRECISION0;



网格.png
回复

使用道具 举报

21

主题

1万

帖子

1万

积分

Rank: 8Rank: 8

等级: 超级版主

注册:
2021-5-18
曾用名:
FireScript
发表于 2023-2-16 09:06 | 显示全部楼层
这个价格直接等于的条件 未必能满足的。
如果不满足,就会卡住,后续的下单也进行不下去的。



金字塔提供一对一VIP专业技术指导服务,技术团队实时响应您的日常使用问题与策略编写。联系电话:021-20339086
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 微信登录

本版积分规则

手机版|小黑屋|上海金之塔信息技术有限公司 ( 沪ICP备13035422号 )

GMT+8, 2025-6-9 22:09 , Processed in 0.168712 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表