|
LMGTFYTPTCBFY
Let me google that for you then paste the contents below for you
modal form
Web definitions
when a modal form displayed, no other form in the application can receive the focus until the modal form is closed; no other statements...
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Thanks for the copy/paste. Says the same as the WinForm-version, and does not imply that the modal form itself cannot launch anything. The text that no other statements are executed is an oversimplification; the modal form still has to process paint-operations.
I can imagine "why" it wouldn't work in a webform, but this isn't a valid enough reason.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I am unable to test it but I thought it was a clue
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
I'm creating .avi files (using VFW), the files consist of screen capture images displayed at 1 fps. I found some sample code for c# at:
http://www.adp-gmbh.ch/csharp/avi/write_avi.html[]
This creates the ,avi file with my images in. However I'm getting a variable number of blank frame at the beginning of the file. Sometimes over 50 blank frames (a lot at 1 fps!). There appears to be no consistency to the number of blank frames, different codecs or recording lengths have no consistent effect on their number.
Some media players when playing the avi's just show the first correct frame a number of times, virtual dub initially shows them as blank and subsequently as distorted images.
Does anyone have any idea what I may be doing wrong?
James
|
|
|
|
|
Hello
I'm trying to create a program that scan the values and compare values against some average highest or loweste values. It seems to me that the entry is no problem, but getting out of the position is not working as it should.
I'm used to VBA, and there I'd just set up a loop to start IF an entrysignal was trigged. And that loop would run until exitsignal was trigged...
But I'm not experienced at all with writing in C#, so I'm not sure how this code actually runs, ie step-by-step:
if (Value < yesterdayslowest50Value && yyesterdayslowest50Value > yesterdaysValue) {
if (_enableShorting && PositionExists(IQ_TradeStatus.OPEN, symbolIndex, IQ_Direction.SHORT_SIDE)) {
BrokerMarket(IQ_ActionType.BUY_TO_COVER, symbolIndex, 0, IQ_TIF.DAY, "CoverToLong");
}
if (!PositionExists(IQ_TradeStatus.OPEN, symbolIndex, IQ_Direction.LONG_SIDE)) {
int orderIndex = BrokerMarket(IQ_ActionType.BUY, symbolIndex, 0, IQ_TIF.DAY, "Long");
BrokerSetStopLossPercent(orderIndex, _stopLoss, true, "");
BrokerSetTakeProfitPercent(orderIndex, _takeProfit, true, "");
BrokerSetTrailingStopLoss(orderIndex, _isPercent, _trailingStop, "");
}
if(Value > yesterdayshighest13Value && yesterdaysValue < yyesterdayshighest13Value && PositionExists(IQ_TradeStatus.OPEN, symbolIndex))
{
int[] positionIndexes = PositionIndexList(IQ_TradeStatus.OPEN, symbolIndex);
double quantity = PositionQuantity(positionIndexes[0]);
BrokerMarket(IQ_ActionType.SELL, symbolIndex, quantity, IQ_TIF.DAY, "Sell");
}
}
else if (Value > yesterdayslowest13Value && yyesterdayslowest13Value < yesterdaysValue) {
if (PositionExists(IQ_TradeStatus.OPEN, symbolIndex, IQ_Direction.LONG_SIDE)) {
BrokerMarket(IQ_ActionType.SELL, symbolIndex, 0, IQ_TIF.DAY, "SellToShort");
}
if (_enableShorting && !PositionExists(IQ_TradeStatus.OPEN, symbolIndex, IQ_Direction.SHORT_SIDE)) {
int orderIndex = BrokerMarket(IQ_ActionType.SELL_SHORT, symbolIndex, 0, IQ_TIF.DAY, "Short");
BrokerSetStopLossPercent(orderIndex, _stopLoss, true, "");
BrokerSetTakeProfitPercent(orderIndex, _takeProfit, true, "");
BrokerSetTrailingStopLoss(orderIndex, _isPercent, _trailingStop, "");
}
if(Value < yesterdayslowest13Value && yesterdaysValue > yyesterdayslowest13Value && PositionExists(IQ_TradeStatus.OPEN, symbolIndex))
{
int[] positionIndexes = PositionIndexList(IQ_TradeStatus.OPEN, symbolIndex);
double quantity = PositionQuantity(positionIndexes[0]);
BrokerMarket(IQ_ActionType.BUY_TO_COVER, symbolIndex, quantity, IQ_TIF.DAY, "Cover");
}
}
It seems that my code have issues exiting the trades. BTW I've used IQBrokers software to program this.
If anyone see some obviouse mistake I'd appreciate it.
Kind regards
Espen
|
|
|
|
|
lordoftrades wrote: so I'm not sure how this code actually runs, ie step-by-step:
Press F10 instead of F5.
Press F10 again.
Press F10 again.
Press F10 again.
That's how it get's executed, statement by statement. Hover the mouse over a variable to see it's contents.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hello
That would have worked fine in VisualStudio, but I writing this code in the software of IQBroker. There are no such step-by-step features as I can see. And I think it will be pretty big mess if I try to open the code in VS, as I'm not sure how to get control over all subcodes and the database too.
Kind regards
Espen
|
|
|
|
|
lordoftrades wrote: I writing this code in the software of IQBroker. I think you will get better help at http://www.iqbroker.com/[^].
Use the best guess
|
|
|
|
|
lordoftrades wrote: And I think it will be pretty big mess if I try to open the code in VS, as I'm not sure how to get control over all subcodes and the database too. Create some mock-objects to fake the IBroker-objects and write the logic in a real IDE
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
You wrote, that in VBA you would use a loop. However in this code I see no loop at all. Maybe the entry and exit conditions are mutually exclusive and don't appear on the same day?
|
|
|
|
|
I'm just pointing out a minor typo in // When to exit
yyesterdayshighest13Value
|
|
|
|
|
Thanks, I think its supposed to be like this, it was my definiton of the day before yesterday
If I only could be able to go step-by-step I'd better understand how it works
Kind regards
Espen
|
|
|
|
|
Hi,
I have created a window service for tracking the idle time of employee. It tracks the login time,logout time, when system get idle (lock automatically using service) and unlock time.
Sometimes unlock event not firing and not track the time into database.
What may be the problem in it ?? Is there any message pump concept should I follow??
Need the help....
|
|
|
|
|
Are you using a really tiny font to show your code here? Is it hiding in the dot above an i?
|
|
|
|
|
Actually I am not getting what are you trying to say...Is it related to my question???
|
|
|
|
|
I think he's hinting at the fact that you did not post any relevant code; it's hard to diagnose a problem without seeing code.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi , I am going to implement an accounting system for a small and single person's store. My system will be able manage Purchases,Sales,Ledgers and inventory.
I want database schema which should be normalized and will accept future changes and requirements. any body can help me.
thanks in advance.
|
|
|
|
|
Yeah, that's not going to happen. First, it's up to the application requirements, which includes legal requirements of the country of origin for your customer.
Second, he/she can get those modules in an off-the-shelf accounting system that will include far more functionality than your going to charge him/her for and get it for less money.
|
|
|
|
|
gashkori wrote: I am going to implement an accounting system for a small and single person's store
Why, unless you are doing this for your own interest or your customer has specific requirements you are ripping off your customer, there are a myriad of small, light weight accounting systems out there that will do all this and more and cost peanuts.
I did find this site [^]interesting.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
thanks a lot you have solve my problem.
|
|
|
|
|
guys really i need this badly i need a source code that can hide a text message inside a text file whatever what is the extension of the file .doc or .docx or .txt in C or java
|
|
|
|
|
..and how much would you be willing to pay?
Member 10009771 wrote: whatever what is the extension of the file *.txt?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
The only code you're going to get is the code you write.
We're not in the business of just handing over projects and code on demand. It teachs you absolutely nothing.
But, if you want a discussion of the technique in a .DOCX file, read this[^].
Oh! And you can't hide data in any file you want anywhere you want. That what a "generic" algorithm is going to end up doing. You have to have very specific knowledge of the file format you're hiding data in and know where you can and cannot place data so that you don't break the existing file to the point where it can no longer be loaded by the host app.
Good luck!
|
|
|
|
|
thanks for the advice but my real problem that my time was totally wasted i can learn but iam out of time just mounth and iam still at the zero condition and i dont have hints i just read about techniques and i am working alone on this grad project
|
|
|
|
|
Well, you're screwed then.
Part of the point behind the project is TIME MANAGEMENT. If you're so pressed for time that you want to cheat by turning in someone elses work, you've completely blown the time management portion of the project.
We cannot and will not be party to your cheating to get a passing grade. Suck it up, take the fail and retake the class. Consider it a lesson learned.
|
|
|
|