CapitaineFlam88
Member
How to change a already defined variable with a if?
I am trying to change the variable mToday when the market is open.
I get an error and the mToday down here are hilighted.
lready assigned: mToday at 102:1
I am trying to change the variable mToday when the market is open.
I get an error and the mToday down here are hilighted.
lready assigned: mToday at 102:1
Code:
def vpmToday = 0;
if marketOpen >= 0930 and marketOpen <= 1600 {
mToday = Round ( Total / FromOpen, 0);
} else {
mToday = 0;
}
Last edited: