Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 05:37:39 +0000



[Programming Help] - Help for Automatic Trading

View Count: 884

[2017-11-23 16:42:12]
Donz - Posts: 17
I am using the Moving Average Crossover

1) Moving Average Crossover (MA10,MA20)
2) Moving Average Crossover (MA100,MA200)

Entry


Entry buy if MA10 cross MA20

AND only IF MA100 and MA200 at cross buy


how to code to put and entry buy and sell using the spreadsheet
Please refer the attachment

i have coding the code..but still doest work and dont know where to start.
Date Time Of Last Edit: 2017-11-23 16:56:09
imageScreenshot_5.png / V - Attached On 2017-11-23 16:41:00 UTC - Size: 31.38 KB - 274 views
imageScreenshot_4.png / V - Attached On 2017-11-23 16:41:12 UTC - Size: 71.82 KB - 270 views
imageScreenshot_3.png / V - Attached On 2017-11-23 16:41:22 UTC - Size: 66.04 KB - 264 views
imageScreenshot_1.png / V - Attached On 2017-11-23 16:41:28 UTC - Size: 71.31 KB - 273 views
[2017-11-23 16:57:05]
Sawtooth - Posts: 3982
Try this:
K3:
=AND(ID1.SG1@3>ID1.SG2@3,CROSSFROMBELOW(ID4.SG1@3:ID4.SG1@4,ID4.SG2@3:ID4.SG2@4))
M3:
=AND(ID1.SG1@3<ID1.SG2@3,CROSSFROMABOVE(ID4.SG1@3:ID4.SG1@4,ID4.SG2@3:ID4.SG2@4))
[2017-11-23 17:51:37]
Donz - Posts: 17
Thnk you , works!!

can you set for buy exit and sell exit

if MA10/20 cross buy, close with cross sell

thanks again. really helpful
[2017-11-23 17:59:02]
Donz - Posts: 17
Please help for L3 and M3

IF entry buy , will close with sell if MA cross
imageScreenshot_1.png / V - Attached On 2017-11-23 17:58:53 UTC - Size: 81 KB - 263 views
[2017-11-23 18:55:38]
Donz - Posts: 17
just found it...and test it

buy exit

=CROSSFROMABOVE(ID4.SG1@3:ID4.SG1@4,ID4.SG2@3:ID4.SG2@4)

sell exit

=CROSSFROMBELOW(ID4.SG1@3:ID4.SG1@4,ID4.SG2@3:ID4.SG2@4)

thank u for help
Date Time Of Last Edit: 2017-11-23 18:55:54

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account