Support Board
Date/Time: Tue, 26 Nov 2024 09:00:17 +0000
Post From: Variable Declaration
[2014-04-15 17:13:58] |
Gary Lockwood - Posts: 16 |
New programmer here trying to figure out a basic question. I'm using the variable 'ready' to be a prereq to enter a trade and I'm trying to declare it in the if(SetDefaults) portion before using it. I have it also declared in my if statement that triggers it 'bool ready = true;' I'm getting an error on my entry if statement: error: 'ready' was not declared in this scope Not sure how to fix this problem as I don't want to declare it where it will continually be turned to false from the autoloop (ie. I want to market to do something to trigger it true, then the market has to do something else before my entry triggers). Stumpted on this one. Any help is appreciated, thank you. |