Created
May 19, 2020 02:52
-
-
Save clintonyeb/589b4a3559c0cb685ba06226d2d73df2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container mx-auto w-screen px-4"> | |
<div class="w-full max-w-2xl"> | |
<h1 class="text-center text-indigo-600 text-lg font-bold"> | |
Moving Average | |
</h1> | |
<div class="flex flex-row bg-grey shadow-md rounded px-8 pt-6 pb-8 mb-4"> | |
<form class="px-2 pt-6 pb-8 mb-4" (ngSubmit)="handleSubmit()" #heroForm="ngForm"> | |
<div class="w-full mb-4"> | |
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2"> | |
Select Currency: | |
</label> | |
<select | |
class="block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500" | |
name="currency" | |
[(ngModel)]="currency" | |
> | |
<option *ngFor="let curr of currencies; index as i">{{curr}}</option> | |
</select> | |
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> | |
<svg | |
class="fill-current h-4 w-4" | |
xmlns="http://www.w3.org/2000/svg" | |
viewBox="0 0 20 20" | |
> | |
<path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z" /> | |
</svg> | |
</div> | |
</div> | |
<div class="mb-4"> | |
<label class="block text-gray-700 text-sm font-bold mb-2"> | |
Number of Ticks: | |
</label> | |
<input | |
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | |
name="tickCount" | |
type="number" | |
[(ngModel)]="tickCount" | |
placeholder="Username" | |
/> | |
</div> | |
<div class="mb-4"> | |
<label class="block text-gray-700 text-sm font-bold mb-2"> | |
Pip Difference: | |
</label> | |
<input | |
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | |
name="pipDiff" | |
type="number" | |
[(ngModel)]="pipDiff" | |
placeholder="Username" | |
/> | |
</div> | |
<div class="w-full flex items-center justify-between"> | |
<button | |
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" | |
type="submit" | |
> | |
Submit | |
</button> | |
</div> | |
</form> | |
<div class="px-2 pt-6 pb-8 mb-4"> | |
<div> | |
<span class="text-center text-gray-600 text-lg font-bold m-2"> | |
Moving Average: | |
</span> | |
{{movavg ? movavg : "Please wait..."}} | |
</div> | |
<div> | |
<span class="text-center text-gray-600 text-lg font-bold m-2"> | |
Ticker: | |
</span> | |
{{ticker}} | |
</div> | |
<div> | |
<span class="text-center text-gray-600 text-lg font-bold m-2"> | |
Buy/Sell: | |
</span> | |
{{buyOrSell ? buyOrSell : "-"}} | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment