Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (vicknick, VoroneTZ), 1,430 guests, and 13 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
My first algorithm with using C. #475666
01/02/19 19:04
01/02/19 19:04
Joined: Jan 2019
Posts: 12
F
First Offline OP
Newbie
First  Offline OP
Newbie
F

Joined: Jan 2019
Posts: 12
Can someone show me how to write this? I figure if I can see it wrttien first, then I can back into the coding and learn form it that way. Note: I have done the 8 tutorial workshhops.


Last edited by First; 01/03/19 02:30.
Re: My first algorithm with using C. [Re: First] #475667
01/02/19 19:26
01/02/19 19:26
Joined: Feb 2017
Posts: 1,731
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,731
Chicago

Re: My first algorithm with using C. [Re: First] #475670
01/02/19 21:35
01/02/19 21:35
Joined: Feb 2017
Posts: 1,731
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,731
Chicago
1) I see only 39 lines of code. Anyways, I believe Zorro starts counting lines from zero, whereas Notepad++ counts from one, so it's always the adjacent line.

2) For true/false variables, you should use bool instead of string.

Re: My first algorithm with using C. [Re: AndrewAMD] #475672
01/02/19 22:36
01/02/19 22:36
Joined: Jan 2019
Posts: 12
F
First Offline OP
Newbie
First  Offline OP
Newbie
F

Joined: Jan 2019
Posts: 12
I copied to another file the code I pasted here and it compiles fine now. Not sure why. Weird.

I changed the string to bool.
It compiles fine now as well and plots when tested.

Alls good...thanks!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1