
25. An easy way to get chart objects and attach orders to studies.
I believe I have covered this in this post
You can also attach any alert to any study then choose what to do when it triggers by adding the corresponding hotkey call in the order. Same as I do the pre-market trailing stops
26. Auto take screenshots EOD for trades taken and save them and name them accordingly
Currently, it is better to save the screenshots at the end of the trade. At the end of the day the chart focus could be a problem as there is no way to determine the start and the end of the trade in scripts. Please read this post
there is also a function in DAS (if it is enough for your use) that allows us to copy any window contents into clipboard like this
getwindowobj("MY1MIN").CopyImg();Where MY1MIN is the name of the window we need to take the screenshot from.
27. If buy stop limit order doesn't fill, get an alert
one way would be to place a price alert where your stop is, add a wait time to the script that would test if your position is 0 after X seconds after reaching the price(triggering the alert).
wait(3000);
$montage.symb=XXX;
if ($montage.pos<>0)
{return;}
else
{
playsound ("alert.mp3");
speak ("Order not filled");
msgbox ("Order not filled");
}tune the seconds and events to alert you as needed
28. For the price to go in my favor 100% of the time. That would be best hotkey on the market.
Technically, it is possible. You will need 2 separate accounts for this. One account you will go long a position and the other account you will go short the position with the same size as the long one.
$MONTAGE=GetWindowObj("MONTAGE1");
$MONTAGE.CXL ALLSYMB;
$amount=1;
$MONTAGE.share=$amount;
$MONTAGE.ROUTE="LIMIT";
$MONTAGE.Price=$MONTAGE.Ask;
$MONTAGE.TIF=DAY+;
$MONTAGE.ACCOUNT="ACCOUNT1";
$MONTAGE.BUY;
$MONTAGE=GetWindowObj("MONTAGE1");
$MONTAGE.CXL ALLSYMB;
$amount=1;
$MONTAGE.share=$amount;
$MONTAGE.ROUTE="LIMIT";
$MONTAGE.Price=$MONTAGE.Ask;
$MONTAGE.TIF=DAY+;
$MONTAGE.ACCOUNT="ACCOUNT2";
$MONTAGE.SELL;Now whichever side the price action will go to, you can say that it is going in your favor.
Allthough i am sure the last question was meant to be a joke, it is a good example to point out how imporant it is to ask the right question to get the right answer.
Help me to help you
If you need any specific help with your hotkeys do not be shy to ask, but before pasting any scrambled code at me, please specify your current situation and objectives. Stating “i am trying to make a hotkey from your part 40 article and it does not work” does not say anything about the situation.
Stating “I try to use a hotkey for going long, running DAS version 5.8.1.4 with SIM account. I have other hotkeys working but this one is throwing me the error: Invalid shares” is just so much better.






I absolutely love the hotkey for 28 hahahaha
12:08:44 Error ScriptError:1 Line:1 Error:Function CopyImg not exist for Object!
Is this command 100% working for you? When was it added? ShowObject() on my chart does not reveal any CopyImg or similarly named function unfortunately (Dastrader 5.8.1.4)