Hi TT
Thanks for the imput. I want to stick to VB as I know enough to save me some time. im not great at coding but Im hoping some resident coding gurus jump in and help, please.
Plan A
create the txt files from functions in easylanguage
VB loops the folders and if a newly created file exists either sends it as sms or takes another action.
I'm going to create the functions first while I decide on phone. Are functions the right thing to do ? Im guessing a 2nd hand Nokia with usb cord if not my USB stick. Probably an older one as there may be more code available for it. i just want a simple txt. Total budget NZD$ 39.95
i haven't checked this as its after hours but it does compile ...
Code: Select all
vars:ChartTime(0),NextTimwCheck(0),msg(" "),AutoStatus(""),FileName(" "),mp(0),
strTime(""),strCurrentTime(""),strdate(""),strClose("");
// convert to string
strTime = numtostr(Time,0);
strCurrentTime = numtostr(CurrentTime,0);
strdate = (numtostr(date,0) );
strclose = (numtostr(close,5) );
mp = MarketPosition_at_Broker_for_The_Strategy; // wont work if auto is off ??
if getappinfo(aistrategyauto) = 0 then AutoStatus = "Off";
if getappinfo(aistrategyauto) = 1 then AutoStatus = "On";
If Autostatus <> Autostatus[1] then begin;
filename = "C:\MC_Msg\" & "Auto_" & getsymbolname & ".txt";
msg =(GetStrategyName & " " & GetSymbolName & " " & strDate & " " & strTime & " " & strCurrentTime & " AutoTrading has been turned " & Autostatus & " Close " & strClose);
FileDelete(filename);
FileAppend(filename ,msg );
end;
//NextTimwCheck = MinutesToTime(TimeToMinutes(Time)+ barinterval);
//ChartTime = Time;
//Print(chartTime," ",currenttime)