Как исправить чтоб работало,вот ошибка 11: 'then' expected near '='
run=true
while run do
priceB=tostring (getParamEx("SPBFUT", "RIH6", 'offer').param_value)
priceS=tostring (getParamEx("SPBFUT", "SRH6", 'bid').param_value)
if priceB-priceS=20 then
message(спред)
end;
sleep(60000)
end
run=true
while run do
priceB=tostring (getParamEx("SPBFUT", "RIH6", 'offer').param_value)
priceS=tostring (getParamEx("SPBFUT", "SRH6", 'bid').param_value)
if priceB-priceS=20 then
message(спред)
end;
sleep(60000)
end