I want to generate a pine program or code.
Condition: when price close above daily pivot point resistance R1 it will generate buy signal. Please help me any expert.
I dont know how to create program in Pine script
Related
so im very new to excel and I have a problem I need to solve for an internship im applying for. As a heads up I apologize for any confusion, but im happy to answer any questions that I may have left out from the explanation. Regardless I would really appreciate some help!
Question:
If someone starting at a company is allowed a draw of $5,000 a month if they earn a commission of less than $5,000, up to $30,000 within the first 12 months. If they make more than $5,000 in commission, they don't automatically get a draw of $5,000. After the first 12 months, regardless of their commission, they no longer are granted a draw.
How do I automate a draw up until $30k total commission if less than $5k for the first 12 months, and stopping the draw automation after either of those conditions are met while maintaining commission earned indefinitely.
What I have done so far
Again I probably formatted the whole book incorrectly for this. But thats the formula I have made for the calculation so far but I dont know how to make the draw stop after either 12 months or after reaching $30k automatically.
EDIT: heres the formulas I have made so far. Again im just starting to learn this so im probably far off. Sorry I forgot to add my formula
I have a report that is generated weekly with productivity numbers for employees in Excel. I am wanting to create a bell curve for several data points where the viewer can select the week time range and the bell curve will be updated. I have figured out formula wise how to make the mean, standard deviation, norm.dist, etc update when the date range is updated. The issue I have yet to solve or find an answer to though is how to graph this data without having to manually update the ranges of the graphs. Once this is accomplished I'd also like to be able to add vertical lines for the average and 1 standard deviation on either side of the average. Is this a possibility in Excel or any other program? I was hoping to be able to use Excel, but am happy to explore other options if that's the only way to do it. Thanks!
We had experienced a problem with our inventory valuation in DAX, as we got a circular dependency. As DAX is not capable of recursion, we are pretty sure to solve this problem with power query functions.
Problem is the following:
Assuming i start with an initial stock: QTY 900000, Price 0,3 and I also have my monthly Sales QTY and Purchase QTY and price I could create the following (the Excel with the formulas for 2 months is attached)
Then, in the next month I would "just" need to take my closing inventory price as my opening price.
This is where the problem sits as it would need to be calculated first and then referencing itself while defining the formula like so:
openingunitrate=
if "initialstockunitrate"=blank() then
inventoryfromopening(monthyear-1)*openingunitrate(monthyear-1)+
inventoryfrompurchases(monthyear-1)*purchaseunitrate(monthyear-1)
/
closingstock(monthyear-1)
else
"initialstockunitrate"
Also what would need to be done is a grouping per "Category" and the column compliance_year. It should start in the next year with 0 as we only have an initial stock this year.
I don't know if this will actually require a recursive function in PowerQuery, so if you have any other idea how to solve it, it's fine as well! In my head this logic totally makes sense but as I have little experince with PQ I'm struggling to actually code it there.
I attached an Excel file that includes both the calculation done in Excel and the sample data which would need to be enhanced.
Please find it under the following link:
Sample Data
thanks and regards,
Martin
It is FIFA world cup time and need some help with my spread sheet project.
We have betting of every game result. Every guy/grl in our betting pool gets points as followed:
1 point for guessing home score right
1 point for guessing away score right
1 point for guessinf winner (1X2) right.
Every guy/grl has his/her own tab in the spreadsheet in which their betting (scores) are inserted in rows like
1-0
1-1
2-4
3-2 ect...
There is one tab to which I enter the actual score as the games are played. These are the real score from which the "logic" checks that how player should be awarded with points.
After hours of inconclusive thinking my question is that how can I make formula that gives me one (1) point, if player guesses the winner corectly (home wins, away wins or the game is tie)?
I already have have system, where I get point for guessing score correctly (if u guess home goals = 1 point and away goals = 1 point, i use formula =IF(EXACT(D2;REALFOOTBALLSCORE.D4);1;0)), but I need one for telling me, that am I rewarded one point for guessing the winner (1X2) or not. I think that in case to do so, I need to play with IF AND nesting. So simplified: what formula tells me that did I guess the winner (1X2) correctly?
Result can also be TRUE or FALSE. The only important thing is, that I get an result of that will I get that one point for 1X2 or not. I use SUM to calculate all points together. It doesn't need to look cool. I hide all the numbers to bottom of the document, where nobody can see them.
Cheers!
I used this formula which also accounts for correctly forecasting a draw as a point:
=IF(OR(Results!F7="",Results!G7=""),"",IF(F7=Results!F7,1,0)+IF(G7=Results!G7,1,0)+IF(OR(AND(F7>G7,Results!F7>Results!G7),AND(F7<G7,Results!F7<Results!G7),AND(F7=G7,Results!F7=Results!G7)),1,0))
I actually built a version that you might find helpful as a starter:
http://we.tl/vHn90XwBTi
You'll need to figure out what you want to do for the knockout stages. If you're only focused on 90min results, just fill down for the remaining fixtures.
Enjoy the world cup!
Basil
first of all let me say that my knowledge of Excel is somewhat basic. I know about formulas but not indepth. I know about functions but nothing about programing. That being said, on with my question.
I'm currently building a office hockey pool spread sheet. I have my main sheet, the result of the games and the differential (see link above for reference, text is in french sorry about that). I will have another sheet, prediction sheet, that the participant will fill with their prediction about who's gonna win the game and by how many points (differential).
Now, I need the prediction sheet to calculate the points attribution depending on the prediction.
Here's how it's supposed to calculate:
1 point for winning team prediction (per game)
1 point for good differential (no mather what team won)
2 point if differential is 3 or higher.
User predictions go on "prediction" sheet, they input what they think the diff. will be on the same side as the team they pick to win.
So what I want to know is, what would be the best way to go about this, with a formula or with a custom function in VBA? I need to determine 1: if the prediction is in the same cell as the other sheet and 2: if the differential is the same as the game result.
Ok, re-reading this I know it's kind of confusing, but it's clear in my head... sorry about that. If anyone of you can make sence out of my problem, please help me by guiding me in the right way. Thank you very much.
If found part of my solution.
I used this formula (I know it can be shorter and better but that's the extent of my knowledge in excel):
=IF(OR(ISBLANK(COMPILATION!A4);ISBLANK(COMPILATION!A5));0;IF(OR(A4=ABS(COMPILATION!A4-COMPILATION!A5);A5=ABS(COMPILATION!A4-COMPILATION!A5));IF(OR(A4>=3;A5>=3);2;1);0))